-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a script to parse docker desktop version, change brew cask install (
ddev#2865) * Add a script to parse docker desktop version * Do cask installs the new way
- Loading branch information
Showing
8 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ We are using [Buildkite](https://buildkite.com/drud) for Windows and macOS testi | |
1. Create the user "testbot" on the machine. The password should be the password of [email protected]. | ||
2. Change the name of the machine to something in keeping with current style. Maybe `testbot-macstadium-macos-3`. | ||
3. Install [Homebrew](https://brew.sh/) `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` | ||
4. Install golang/git/docker with `brew tap drud/ddev-edge && brew install buildkite/buildkite/buildkite-agent iterm2 google-chrome docker nosleep golang git mariadb jq p7zip bats-core composer ddev netcat mkcert ngrok` | ||
4. Install golang/git/docker with brew install buildkite/buildkite/buildkite-agent homebrew/cask/iterm2 homebrew/cask/google-chrome homebrew/cask/docker homebrew/cask/nosleep golang git mariadb jq p7zip bats-core composer drud/ddev/ddev netcat mkcert homebrew/cask/ngrok` | ||
5. `mkcert -install` | ||
6. Run Docker manually and go through its configuration routine. | ||
7. Run iTerm. On Mojave and higher it may prompt for requiring full disk access permissions, follow through with that. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ We are using GitHub Self-Hosted Agents for Windows and macOS testing. The build | |
1. Create the user "testbot" on the machine. The password should be the password of [email protected]. | ||
2. Change the name of the machine to something in keeping with current style. Maybe `testbot-macstadium-macos-3`. | ||
3. Install [Homebrew](https://brew.sh/) `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` | ||
4. Install golang/git/docker with `brew cask install iterm2 google-chrome docker nosleep && brew tap buildkite/buildkite && brew tap drud/ddev && brew install golang git buildkite-agent mariadb jq p7zip bats-core composer ddev netcat mkcert && brew cask install ngrok` | ||
4. Install golang/git/docker with `brew install homebrew/cask/iterm2 homebrew/cask/google-chrome homebrew/cask/docker drud/ddev/ddev homebrew/cask/nosleep buildkite/buildkite/buildkite-agent golang git mariadb jq p7zip bats-core composer netcat mkcert homebrew/cask/ngrok` | ||
5. `mkcert -install` | ||
6. Run Docker manually and go through its configuration routine. | ||
7. Run iTerm. On Mojave and higher it may prompt for requiring full disk access permissions, follow through with that. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
MACOS_INFO_PATH=/Applications/Docker.app/Contents/Info.plist | ||
|
||
if [ "${OSTYPE%%[0-9]*}" = "darwin" ] && ! command -v xq >/dev/null; then | ||
printf "Please install xq, brew install python-yq, to parse macOS Info.plist" | ||
exit | ||
fi | ||
|
||
if command -v powershell >/dev/null; then | ||
printf "Docker Desktop for Windows " | ||
powershell.exe -command '[System.Diagnostics.FileVersionInfo]::GetVersionInfo("C:\Program Files\Docker\Docker\Docker Desktop.exe").FileVersion' | ||
elif [ -x /usr/libexec/PlistBuddy ] ; then | ||
version=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" ${MACOS_INFO_PATH}) | ||
build=$(/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" ${MACOS_INFO_PATH}) | ||
printf "Docker Desktop for Mac %s build %s" ${version} ${build} | ||
else | ||
printf "Unknown Docker Desktop version" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters