From 9aeb37a167c1a5dbbeb1675672f94c57d483a32a Mon Sep 17 00:00:00 2001 From: jpfleischer Date: Fri, 18 Oct 2024 21:41:09 -0400 Subject: [PATCH] Troubleshoot docker --- .github/workflows/dockerbuild.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dockerbuild.yml b/.github/workflows/dockerbuild.yml index 9c7b4545f..a42340573 100644 --- a/.github/workflows/dockerbuild.yml +++ b/.github/workflows/dockerbuild.yml @@ -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 . \ No newline at end of file + docker run hello-world \ No newline at end of file