Show what a continuous delivery pipeline would look like with hashicorp tools including Consul, Terraform and Packer.
| Tool | Purpose |
|---|---|
| consul template | dynamic haproxy config and nginx index file |
| alpine linux | mostly for disk space. 100-300MB~ on avg |
- Replace HAProxy with fabio / Traefik
- Use registrator to dynamically register containers
- Add more variables
$ packer build -var 'app=consul' packer.json
$ packer build -var 'app=haproxy' packer.json
$ packer build -var 'app=nginx' packer.json
$ terraform plan
$ terraform apply| Service | URL |
|---|---|
| consul | http://127.0.0.1:8500 |
| haproxy | http://127.0.0.1:8001 |
| nginx | http://127.0.0.1:80 |