Skip to content

Commit

Permalink
Automate docker install
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Oct 19, 2024
1 parent 7277364 commit 3304752
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ jobs:
- name: Setup docker, docker-compose, and colima (missing on MacOS)
if: runner.os == 'macos'
run: |
brew install docker docker-compose colima
# Link the Docker Compose v2 plugin so it's understood by the docker CLI
mkdir -p ~/.docker/cli-plugins
ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
colima start
HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask docker
sudo /Applications/Docker.app/Contents/MacOS/Docker --unattended --install-privileged-components
open -a /Applications/Docker.app --args --unattended --accept-license
echo "We are waiting for Docker to be up and running. It can take over 2 minutes..."
while ! /Applications/Docker.app/Contents/Resources/bin/docker info &>/dev/null; do sleep 1; done
- name: try doing docker build
shell: bash -l {0}
Expand Down

0 comments on commit 3304752

Please sign in to comment.