Skip to content

Commit

Permalink
Added different way to setup docker
Browse files Browse the repository at this point in the history
  • Loading branch information
MarhiievHE committed Dec 31, 2023
1 parent 6e86274 commit 8726fa7
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,24 @@ jobs:
- name: Setup docker (missing on MacOS)
if: runner.os == 'macos'
run: |
brew install docker
brew install docker-compose
mkdir -p ~/.docker/cli-plugins
ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
colima start
# For testcontainers to find the Colima socket
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
# brew install docker
# brew install docker-compose
# mkdir -p ~/.docker/cli-plugins
# ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
# docker --version
# dockerd --unprivileged
# docker info
# colima start
# # For testcontainers to find the Colima socket
# # https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
# sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
curl -o Docker.dmg https://desktop.docker.com/mac/main/arm64/Docker.dmg?utm_source=docker&utm_medium=webreferral&utm_campaign=docs-driven-download-mac-arm64&_gl=1*1vy3g4e*_ga*MTE2MjkxMTYzMS4xNjk2MjYwNjc1*_ga_XJWPQMJYHQ*MTcwMzk4MDY3OS4yNC4xLjE3MDM5ODI3MDcuNDMuMC4w
softwareupdate --install-rosetta
sudo hdiutil attach Docker.dmg
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install --accept-license
sudo hdiutil detach /Volumes/Docker
- name: Setup pg (on Windows)
if: runner.os == 'windows'
Expand Down

0 comments on commit 8726fa7

Please sign in to comment.