Created
June 24, 2014 05:53
-
-
Save benhardy/38889736decb38bf0d5b to your computer and use it in GitHub Desktop.
docker startup script for benhardy/ubuntu-java8
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
#!/usr/bin/env sh | |
TARBALL_URL=$1 | |
APP_NAME=$2 | |
echo "Cleaning up any previous $APP_NAME directory" | |
rm -rf $APP_NAME | |
echo "curling $TARBALL_URL -> $APP_NAME.tgz" | |
curl $TARBALL_URL -o $APP_NAME.tgz | |
echo "extracting $APP_NAME.tgz" | |
tar xvzf $APP_NAME.tgz | |
echo "running" | |
cd $APP_NAME | |
bin/start.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment