Packer CLI in a Docker image.
docker run --rm -it -v ~/.aws:/root/.aws -v $(pwd):/opt/app --entrypoint bash altostack/packer
packer:
image: altostack/packer
env_file: .env
working_dir: /opt/app
entrypoint: packer
volumes:
- .:/opt/app:rw
- ${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}
Update the TERRAFORM_VERSION
in both Makefile
and DockerFile
. Then run:
make build