Skip to content

Commit 9bf4566

Browse files
committed
Added different way to setup docker
1 parent 6e86274 commit 9bf4566

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/test-macos.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,24 @@ jobs:
2424
- name: Setup docker (missing on MacOS)
2525
if: runner.os == 'macos'
2626
run: |
27-
brew install docker
28-
brew install docker-compose
29-
mkdir -p ~/.docker/cli-plugins
30-
ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
31-
colima start
32-
# For testcontainers to find the Colima socket
33-
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
34-
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
27+
# brew install docker
28+
# brew install docker-compose
29+
# mkdir -p ~/.docker/cli-plugins
30+
# ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
31+
# docker --version
32+
# dockerd --unprivileged
33+
# docker info
34+
35+
# colima start
36+
# # For testcontainers to find the Colima socket
37+
# # https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
38+
# sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
39+
40+
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
41+
# softwareupdate --install-rosetta
42+
sudo hdiutil attach Docker.dmg
43+
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install --accept-license
44+
sudo hdiutil detach /Volumes/Docker
3545
3646
- name: Setup pg (on Windows)
3747
if: runner.os == 'windows'

0 commit comments

Comments
 (0)