Skip to content

Instantly share code, notes, and snippets.

@noboomu
Created December 28, 2018 00:29
Show Gist options
  • Save noboomu/33f2edce6ff1af70d661b21245e84774 to your computer and use it in GitHub Desktop.
Save noboomu/33f2edce6ff1af70d661b21245e84774 to your computer and use it in GitHub Desktop.
Container Deploy from S3 Script
#!/bin/bash
aws s3 cp s3://$BUCKET_NAME/$ARCHIVE_KEY .
echo "Extracting project"
DIRECTORY_NAME=`tar -tf $ARCHIVE_NAME | sed -e 's@/.*@@' | uniq`
tar -zxvf ./$ARCHIVE_NAME
cd $DIRECTORY_NAME
./scripts/start.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment