-
-
Save nuke99/68d58b94155e5af24e9d6ece2bd1cdac to your computer and use it in GitHub Desktop.
Temper Docker Support
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
#!/usr/bin/env bash | |
if [ $# -eq 0 ] ; then | |
echo "avaiable commands" | |
echo "- artisan" | |
echo "- composer" | |
echo "- shell" | |
echo "- yarn" | |
exit 1 | |
fi | |
if [ $1 == "artisan" ] ; then | |
docker exec -it web_workspace php artisan ${@:2} | |
elif [ $1 == "composer" ] ; then | |
docker exec -it web_workspace composer ${@:2} | |
elif [ $1 == "shell" ] ; then | |
docker exec -it web_workspace bash | |
elif [ $1 == "yarn" ] ; then | |
docker exec -it web_workspace yarn ${@:2} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install to mac
curl https://gist.githubusercontent.com/nuke99/68d58b94155e5af24e9d6ece2bd1cdac/raw/aea7a5bf802039af0f52a4fa3cc70177f5e2b80f/dev > /usr/local/bin/dev && chmod u+x /usr/local/bin/dev