Skip to content

Commit

Permalink
fix ci machine for docker on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Mar 25, 2020
1 parent dce6678 commit 7d5b854
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Empty file added default.profraw
Empty file.
9 changes: 7 additions & 2 deletions hack/jenkins/osx_integration_tests_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ EXTRA_START_ARGS=""
EXPECTED_DEFAULT_DRIVER="hyperkit"


# restart docker on mac for a fresh test
osascript -e 'quit app "Docker"'; open -a Docker ; while [ -z "$(docker info 2> /dev/null )" ]; do printf "."; sleep 1; done; echo "" || true
# fix mac os as a service on mac os
# https://github.com/docker/for-mac/issues/882#issuecomment-506372814
osascript -e 'quit app "Docker"';
sudo /Applications/Docker.app/Contents/MacOS/Docker --quit-after-install --unattended || true
# repeating without sudo because https://github.com/docker/for-mac/issues/882#issuecomment-516946766
/Applications/Docker.app/Contents/MacOS/Docker --quit-after-install --unattended || true
osascript -e 'quit app "Docker"'; /Applications/Docker.app/Contents/MacOS/Docker --unattended &; while [ -z "$(docker info 2> /dev/null )" ]; do printf "."; sleep 1; done; echo "" || true

mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES"
install cron/cleanup_and_reboot_Darwin.sh $HOME/cleanup_and_reboot.sh || echo "FAILED TO INSTALL CLEANUP"
Expand Down

0 comments on commit 7d5b854

Please sign in to comment.