Docker image with packer and ansible.
This image is used when following the 3 Musketeers pattern. By running packer inside Docker, we ensure consistency, control and confidence.
packer, you can be sure that they will function the same whether you run it on your Windows workstation or on a Jenkins build agent.packer.Makefile:
build:
docker-compose run --rm packer packer build -force -timestamp-ui ${PACKER_TEMPLATE}
.PHONY: build
docker-compose.yml:
version: "3.7"
services:
packer:
image: cmdlabs/packer-utils:1.7.0
environment:
- AWS_SDK_LOAD_CONFIG=1
- PACKER_LOG=0
entrypoint: []
volumes:
- .:/work
- ~/.aws:/root/.aws
- ~/.ssh:/root/.ssh
working_dir: /work/
Content type
Image
Digest
Size
134.4 MB
Last updated
over 5 years ago
docker pull cmdlabs/packer-utils