Demo for docker meetup #4
Shell
Latest commit c3ce5db Jan 17, 2015 @tcnksm Update README
Permalink
Failed to load latest commit information.
dockerfiles Initial commit Jan 15, 2015
tf Initial commit Jan 15, 2015
unit-files Initial commit Jan 15, 2015
.gitignore Initial commit Jan 15, 2015
LICENSE Initial commit Jan 15, 2015
README.md Update README Jan 17, 2015

README.md

Demo for Docker meetup #4

MIT License

This is demo for docker meetup tokyo #4.

Deploy tcnksm/docker-meetup-demo-web container and load-balancing it by tcnksm/docker-meetup-demo-lb container.

Workflows

On Local

$ docker run -d -p 8888:80 tcnksm/docker-meetup-demo-web:1
$ docker run -d -p 9999:80 tcnksm/docker-meetup-demo-web:2

Check sites

$ curl $(boot2docker ip 2>/dev/null):8888
$ curl $(boot2docker ip 2>/dev/null):9999

Build CoreOS cluster on DigitalOcean

$ cd tf
$ terraform apply
$ export FLEETCTL_TUNNEL="128.199.199.122"
$ fleet list-machines

Start first web container (tcnksm/docker-meetup-demo-web:1) service and its side kick service

$ ls unit-files/web/1
$ fleetctl start unit-files/web/1/*
$ fleetctl list-units

Start lb container (tcnksm/docker-meetup-demo-lb) service.

$ ls unit-files/lb
$ fleetctl start unit-files/lb/lb.service
$ fleetctl list-units

Start second web container (tcnksm/docker-meetup-demo-web:2) service and its side kick service.

$ ls unit-files/web/1
$ fleetctl start unit-files/web/1/*
$ fleetctl list-units

Author

tcnksm