Demo for docker meetup #4
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dockerfiles
tf
unit-files
.gitignore
LICENSE
README.md

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