This file contains 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 | |
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -y && apt-get -y install git python python-pip | |
curl -s https://get.docker.com | sh | |
service docker start | |
pip install -U docker-compose | |
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 | |
/usr/local/bin/docker-compose ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment