https://github.com/githubfoam/terraform-sandbox
Vagrant Terraform Docker Sandbox
https://github.com/githubfoam/terraform-sandbox
docker multi-arch multi-os terraform
Last synced: 2 months ago
JSON representation
Vagrant Terraform Docker Sandbox
- Host: GitHub
- URL: https://github.com/githubfoam/terraform-sandbox
- Owner: githubfoam
- License: gpl-3.0
- Created: 2018-11-29T19:53:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-17T19:11:38.000Z (over 5 years ago)
- Last Synced: 2025-06-14T11:05:35.378Z (about 1 year ago)
- Topics: docker, multi-arch, multi-os, terraform
- Language: Shell
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
terraform sandbox
Travis (.com) branch:
[](https://travis-ci.com/githubfoam/terraform-sandbox)
feature windows
[](https://travis-ci.com/githubfoam/terraform-sandbox)
feature macos
[](https://travis-ci.com/githubfoam/terraform-sandbox)
----------------
Cross-platform (linux/win/macos)
Vagrant Terraform Docker Nginx Sandbox.
~~~~
>vagrant init --template Vagrantfile.terraform.erb
>vagrant up terraformsandbox01
>vagrant ssh terraformsandbox01
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
~~~~
~~~~
https://learn.hashicorp.com/tutorials/terraform/install-cli
----------------
~~~~
License
-------
GNU General Public License v3.0
Author Information
------------------
An optional section for the role authors