drun() {
if [[ $# -eq 0 ]]
then
echo "Which container? Provide 1 argument."
return 0
fi
case "$1" in
'web' )
docker run -d \
--name web \
-p 80:80 \
-e APP=web \
--link db:db \
-v /Users/Garrett/NetBeansProjects:/var/www/mount \
-t devbox \
apache2-foreground
;;
'phantom' )
docker run -d \
--name phantom \
-p 81:81 \
-e APP=phantom \
-v /Users/Garrett/NetBeansProjects:/var/www/html \
-t devbox \
apache2-foreground
;;
'db' )
docker run -d \
--name db \
-e APP=db \
-e MYSQL_ROOT_PASSWORD=rootpwd \
percona
;;
esac
}
Last active
September 3, 2015 16:55
-
-
Save garretttaco/6bc964278f0d2fd320d6 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment