Skip to content

uriinf/docker-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-tools

Based on python3 container includes ansible stable 2.7, terraform and awsclii.

Build locally

docker build -t local/tools

ansible usage example

ANSIBLE_RETRY_FILES_ENABLED=0 docker run -it --rm -v $(pwd)/test:/workspace -w /workspace local/tools ansible-playbook -i ./hosts play.yml

terraform usage example

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/test:/workspace -w /workspace local/tools terraform init
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/test:/workspace -w /workspace local/tools terraform apply -auto-approve
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/test:/workspace -w /workspace local/tools terraform destroy -auto-approve
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/test:/workspace -w /workspace local/tools rm -rf rm -rf .terraform *.tfstate*

About

Container with ansible and terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published