Last active
May 19, 2016 20:09
-
-
Save frohoff/eee10a73dfa88793bc2b60e4935ec5d6 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
#!/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