Skip to content

Instantly share code, notes, and snippets.

@frohoff
Last active December 22, 2022 11:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save frohoff/365be933c08dc798d134a21215cb54ce to your computer and use it in GitHub Desktop.
Save frohoff/365be933c08dc798d134a21215cb54ce to your computer and use it in GitHub Desktop.
#!/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