Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 988 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 988 Bytes

docker-packer-utils

Docker image with packer and other useful utilities

Why?

This image is used when following the 3 Musketeers pattern. By running packer inside Docker, we ensure consistency, control and confidence.

  • Consistency: when developing automated processes that use 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.
  • Control: by specifying the version of the image in [docker-compose.yml][], we can deploy to two incompatible versions of Packer simultaneously.
  • Confidence: reliable deployments build confidence in the use of CI/CD pipelines, creating a positive feedback loop that encourages developers to use CI/CD

How To Use

Makefile:

deploy:
	docker-compose run --rm packer build

docker-compose.yml:

services:
  packer:
    image: cmdlabs/packer-utils:1.0.0
    volumes:
      - .:/work:Z