Last active
October 17, 2015 04:16
Revisions
-
kcmerrill revised this gist
Oct 17, 2015 . 1 changed file with 7 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,12 @@ !#/bin/bash if [[ $(whoami) == "root" ]]; then printf "To finalize your yoda installation, simply put this into your ~/.bash_profile as an alias\n\n\nalias " printf "alias yoda='docker run --rm -ti --name yodaapp -v $HOME/.ssh:$HOME/.ssh -v $HOME/.yoda/shares:/yoda/www/share -v $HOME/.docker:$HOME/.docker -v $HOME/.yoda:$HOME/.yoda -e containerized=true -h=$HOSTNAME -v /var/run/docker.sock:/var/run/docker.sock -v $(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi):$(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi) -w $PWD -u $(id -u $USER) kcmerrill/yoda'"; else mkdir yoda cd yoda printf "FROM kcmerrill/yoda\n\nRUN useradd $(whoami) -u $(id -u $USER)" > Dockerfile docker build -t yodabin . printf "To finalize your yoda installation, simply put this into your ~/.bash_profile as an alias\n\n\nalias " printf "alias yoda='docker run --rm -ti --name yodaapp -v $HOME/.ssh:$HOME/.ssh -v $HOME/.yoda/shares:/yoda/www/share -v $HOME/.docker:$HOME/.docker -v $HOME/.yoda:$HOME/.yoda -e containerized=true -h=$HOSTNAME -v /var/run/docker.sock:/var/run/docker.sock -v $(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi):$(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi) -w $PWD -u $(id -u $USER) yodabin')"; fi -
kcmerrill revised this gist
Oct 17, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,11 @@ !#/bin/bash mkdir yoda cd yoda printf "FROM kcmerrill/yoda\n\nRUN useradd $(whoami) -u $(id -u $USER)" > Dockerfile docker build -t yodabin . printf "To finalize your yoda installation, simply put this into your ~/.bash_profile as an alias\n\n\nalias " if [ $(whoami) == "root" ] then printf "alias yoda='docker run --rm -ti --name yodaapp -v $HOME/.ssh:$HOME/.ssh -v $HOME/.yoda/shares:/yoda/www/share -v $HOME/.docker:$HOME/.docker -v $HOME/.yoda:$HOME/.yoda -e containerized=true -h=$HOSTNAME -v /var/run/docker.sock:/var/run/docker.sock -v $(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi):$(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi) -w $PWD -u $(id -u $USER) kcmerrill/yoda'"; else -
kcmerrill revised this gist
Oct 17, 2015 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,9 @@ printf "FROM kcmerrill/yoda\n\nRUN useradd $(whoami) -u $(id -u $USER)" > Docker docker build -t yodabin . printf "To finalize your yoda installation, simply put this into your ~/.bash_profile as an alias\n\n\nalias " if [ $(whoami) == \"root\" ] then printf "alias yoda='docker run --rm -ti --name yodaapp -v $HOME/.ssh:$HOME/.ssh -v $HOME/.yoda/shares:/yoda/www/share -v $HOME/.docker:$HOME/.docker -v $HOME/.yoda:$HOME/.yoda -e containerized=true -h=$HOSTNAME -v /var/run/docker.sock:/var/run/docker.sock -v $(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi):$(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi) -w $PWD -u $(id -u $USER) kcmerrill/yoda'"; else printf "alias yoda='docker run --rm -ti --name yodaapp -v $HOME/.ssh:$HOME/.ssh -v $HOME/.yoda/shares:/yoda/www/share -v $HOME/.docker:$HOME/.docker -v $HOME/.yoda:$HOME/.yoda -e containerized=true -h=$HOSTNAME -v /var/run/docker.sock:/var/run/docker.sock -v $(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi):$(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi) -w $PWD -u $(id -u $USER) yodabin')"; fi -
kcmerrill created this gist
Oct 17, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ mkdir yoda cd yoda printf "FROM kcmerrill/yoda\n\nRUN useradd $(whoami) -u $(id -u $USER)" > Dockerfile docker build -t yodabin . printf "To finalize your yoda installation, simply put this into your ~/.bash_profile as an alias\n\n\nalias " if [ $(whoami) == \"root\" ]; then printf "alias yoda='docker run --rm -ti --name yodaapp -v $HOME/.ssh:$HOME/.ssh -v $HOME/.yoda/shares:/yoda/www/share -v $HOME/.docker:$HOME/.docker -v $HOME/.yoda:$HOME/.yoda -e containerized=true -h=$HOSTNAME -v /var/run/docker.sock:/var/run/docker.sock -v $(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi):$(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi) -w $PWD -u $(id -u $USER) kcmerrill/yoda'"; else printf "alias yoda='docker run --rm -ti --name yodaapp -v $HOME/.ssh:$HOME/.ssh -v $HOME/.yoda/shares:/yoda/www/share -v $HOME/.docker:$HOME/.docker -v $HOME/.yoda:$HOME/.yoda -e containerized=true -h=$HOSTNAME -v /var/run/docker.sock:/var/run/docker.sock -v $(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi):$(if [ $(dirname $PWD) == \"/\" ]; then echo $PWD; else dirname $PWD; fi) -w $PWD -u $(id -u $USER) yodabin')"; fi