remove manual install step for docker
This commit is contained in:
parent
a7a7675f9b
commit
9994faca39
14
README.md
14
README.md
@ -8,19 +8,7 @@ sdk install java 8.0.202-zulu
|
|||||||
|
|
||||||
### Install Docker Desktop for Mac
|
### Install Docker Desktop for Mac
|
||||||
```
|
```
|
||||||
docker_app=$(find /Applications/ \
|
~/.scripts/bootstrap.sh
|
||||||
-name "Docker.app" -maxdepth 1 -mindepth 1 -type d)
|
|
||||||
if [ -z "$docker_app" ]; then
|
|
||||||
curl -o ~/Downloads/Docker.dmg -sL https://download.docker.com/mac/stable/Docker.dmg
|
|
||||||
hdiutil verify ~/Downloads/Docker.dmg
|
|
||||||
hdiutil attach ~/Downloads/Docker.dmg -nobrowse
|
|
||||||
cp -R /Volumes/Docker/Docker.app /Applications/
|
|
||||||
hdiutil detach /Volumes/Docker
|
|
||||||
rm ~/Downloads/Docker.dmg
|
|
||||||
sudo /Applications/Docker.app/Contents/MacOS/Docker --quit-after-install --unattended
|
|
||||||
else
|
|
||||||
echo "Docker for Mac is already installed."
|
|
||||||
fi
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install dependencies (apps, fonts, ...) with Brew
|
### Install dependencies (apps, fonts, ...) with Brew
|
||||||
|
12
dot_scripts/executable_bootstrap.sh
Normal file
12
dot_scripts/executable_bootstrap.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
docker_app=$(find /Applications/ \
|
||||||
|
-name "Docker.app" -maxdepth 1 -mindepth 1 -type d)
|
||||||
|
if [ -z "$docker_app" ]; then
|
||||||
|
echo "Installation of Docker for Mac"
|
||||||
|
curl -o ~/Downloads/Docker.dmg -sL https://download.docker.com/mac/stable/Docker.dmg
|
||||||
|
hdiutil verify ~/Downloads/Docker.dmg
|
||||||
|
hdiutil attach ~/Downloads/Docker.dmg -nobrowse
|
||||||
|
cp -R /Volumes/Docker/Docker.app /Applications/
|
||||||
|
hdiutil detach /Volumes/Docker
|
||||||
|
rm ~/Downloads/Docker.dmg
|
||||||
|
sudo /Applications/Docker.app/Contents/MacOS/Docker --quit-after-install --unattended
|
||||||
|
fi
|
@ -92,6 +92,7 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
# For a full list of active aliases, run `alias`.
|
# For a full list of active aliases, run `alias`.
|
||||||
. ~/.zsh_aliases
|
. ~/.zsh_aliases
|
||||||
. ~/.zsh_functions
|
. ~/.zsh_functions
|
||||||
|
. ~/.scripts/bootstrap.sh
|
||||||
|
|
||||||
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! https://github.com/sdkman/sdkman-cli/issues/613
|
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! https://github.com/sdkman/sdkman-cli/issues/613
|
||||||
export SDKMAN_DIR="$HOME/.sdkman"
|
export SDKMAN_DIR="$HOME/.sdkman"
|
||||||
|
Loading…
Reference in New Issue
Block a user