Skip to content

Instantly share code, notes, and snippets.

@benhardy
Created June 24, 2014 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benhardy/38889736decb38bf0d5b to your computer and use it in GitHub Desktop.
Save benhardy/38889736decb38bf0d5b to your computer and use it in GitHub Desktop.
docker startup script for benhardy/ubuntu-java8
#!/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