Skip to content

Instantly share code, notes, and snippets.

@frohoff
Last active May 19, 2016 20:09
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 frohoff/eee10a73dfa88793bc2b60e4935ec5d6 to your computer and use it in GitHub Desktop.
Save frohoff/eee10a73dfa88793bc2b60e4935ec5d6 to your computer and use it in GitHub Desktop.
#!/bin/bash -xe
yum update -y
yum install -y git
curl -s https://get.docker.com | sh
service docker start
chkconfig docker on
pip install -U docker-compose
chmod +x /usr/local/bin/docker-compose # workaround for issue
mkdir /opt/docker.d
cd /opt/docker.d
for p in $@; do
git clone $p
done
for p in $(ls); do
pushd $p
/usr/local/bin/docker-compose up -d
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment