Created
October 27, 2014 05:38
-
-
Save MehrCurry/c5d8417111e857924f02 to your computer and use it in GitHub Desktop.
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 characters
| WAR_CONTAINER=$(docker ps -a | grep blacklist-deploy | awk '{print $1;}') | |
| if [ -n "$WAR_CONTAINER" ] | |
| then | |
| docker rm $WAR_CONTAINER | |
| fi | |
| GF_CONTAINER=$(docker ps -a | grep blacklist-dev | awk '{print $1;}') | |
| if [ -n "$GF_CONTAINER" ] | |
| then | |
| docker rm $GF_CONTAINER | |
| fi | |
| docker run --name blacklist-deploy -v $PWD/target/dependencies:/opt/glassfish4/glassfish/domains/domain1/autodeploy busybox | |
| docker run --name blacklist-dev --volumes-from blacklist-depley -d -p 14848:4848 -p 18080:8080 gzockoll/glassfish-4.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment