Skip to content

21Buttons/pterrafile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized version of pterrafile

https://github.com/claranet/python-terrafile

It allows to run cache Terraform modules from a Terrafile using Docker.

Install (build)

docker build -t pterrafile .

Usage

docker run --rm -it \
-v `pwd`:/app/ pterrafile pterrafile Terrafile

Extend

To extend the libraries to include, just modify the Pipfile and run:

docker run --rm -v `pwd`:/app -e PIPENV_PIPFILE=/app/Pipfile kennethreitz/pipenv \
bash -c "pipenv lock -r > requirements.txt"

This will update the requirements.txt file and the Pipfile.lock.

Enjoy!