Cross-platform (linux/win)
Vagrant Terraform Docker Nginx Sandbox.
Locally running terraform all-in-one.
Commands:
- vagrant ssh
cd /vagrant
- sudo terraform init
- sudo terraform plan -out nginx.tfplan
- sudo terraform apply nginx.tfplan
- sudo terraform show
- sudo terraform destroy
$ sudo docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 98ebf73aba75 4 days ago 109MB
$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7cdc5352bdaf 98ebf73aba75 "nginx -g 'daemon of…" About a minute ago Up About a minute 0.0.0.0:80->80/tcp nginx-server
$ sudo docker exec -it 7cdc5352bdaf bash
root@7cdc5352bdaf:/#
Browse http://192.168.45.10
GNU General Public License v3.0
An optional section for the role authors