Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test starting Desktop #8

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: macOS-latest

steps:
- uses: actions/checkout@v4

- name: Start Desktop
run: echo Hello Desktop
uses: ./start

- name: Debug
run: |
ls -al ~/Library/Containers/com.docker.docker || true
docker ps -a || true

- name: Desktop version
run: docker info
20 changes: 13 additions & 7 deletions start/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ runs:
wget -q -O ./temp/DockerDesktop.dmg https://desktop.docker.com/mac/main/amd64/Docker.dmg
/usr/bin/hdiutil attach -noverify ./temp/DockerDesktop.dmg -mountpoint ./mount/desktop -nobrowse
echo "dmg mounted"
sudo ./mount/desktop/Docker.app/Contents/MacOS/install --accept-license
sudo mkdir /Library/PrivilegedHelperTools
sudo ./mount/desktop/Docker.app/Contents/MacOS/install --accept-license --user runner
echo "dmg installed"

echo "ls /Library/Application Support/com.docker.docker"
Expand All @@ -67,19 +68,24 @@ runs:
/usr/bin/hdiutil detach ./mount/desktop
echo "dmg unmounted"

- name: Install Docker Desktop app
- name: Start Docker Desktop app
shell: bash
run: |
sudo mkdir /Library/PrivilegedHelperTools
sudo /Applications/Docker.app/Contents/MacOS/install config --user runner
sudo /Applications/Docker.app/Contents/MacOS/install vmnetd
echo "app installed"
/usr/bin/open /Applications/Docker.app --args --unattended --add-host-docker-internal-registry
/usr/bin/open /Applications/Docker.app --args --unattended --add-host-docker-internal-registry --telemetry
echo "Docker starting..."

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15

- name: Wait for Docker to be up and running
shell: bash
timeout-minutes: 5
run: |
until docker ps; do echo "docker not ready, sleep 10 s and try again"; sleep 10; done
echo "Docker started and ready"
docker version

- name: Gather Diagnostics
if: ${{ failure() }}
run: /Applications/Docker.app/Contents/MacOS/com.docker.diagnose gather -upload
Loading