Skip to content

Instantly share code, notes, and snippets.

@pjvds
Last active August 29, 2015 13:56
Show Gist options
  • Save pjvds/9055636 to your computer and use it in GitHub Desktop.
Save pjvds/9055636 to your computer and use it in GitHub Desktop.
# Running terminator
docker pull quay.io/happypancake/terminator
docker stop terminator || echo "nothing to stop"
docker rm terminator || echo "nothing to remove"
docker run -lxc-conf="lxc.cgroup.cpuset.cpus=0-1" -e "GOMAXPROCS=2" -t -p="0.0.0.0:80:80" -name=terminator quay.io/happypancake/terminator
# Running web-aggregator
docker pull quay.io/happypancake/web
docker stop web || echo "nothing to stop"
docker rm web || echo "nothing to remove"
docker run -lxc-conf="lxc.cgroup.cpuset.cpus=0-1" -e "GOMAXPROCS=2" -t -name=web -link="terminator:terminator" quay.io/happypancake/web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment