Skip to content

Commit

Permalink
Troubleshoot docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Oct 19, 2024
1 parent 3304752 commit 9aeb37a
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,19 @@ jobs:
uname -a
uname -m
- name: Setup docker, docker-compose, and colima (missing on MacOS)
if: runner.os == 'macos'
# Install Docker and Docker Compose
- name: Install Docker and Docker Compose
run: |
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
brew install --cask docker
brew install docker-compose
- name: try doing docker build
shell: bash -l {0}
# Start Docker
- name: Start Docker Service
run: |
open /Applications/Docker.app
while ! docker system info > /dev/null 2>&1; do sleep 1; done
# Run Docker commands
- name: Run a Docker container
run: |
docker build -t emission-server .
docker run hello-world

0 comments on commit 9aeb37a

Please sign in to comment.