Over the last few weeks I’ve put together a pull request for Packer which should be releasing soon with version 0.5.2.

With my usage of Packer and Docker, I’ve always found it an annoyance to have to import the Packer built Docker image separately, using Docker import, rather than have Packer handle importing with a post-processor.

Once 0.5.2 releases, the deployment of a Packer built Docker image can be optimized through the use of the docker-push and docker-import post processors, through a build template with post-processors much like the following:

1
2
3
4
5
6
{
  "type": "docker-import",
  "repository": "mmckeen/packer",
  "tag": "0.5.2"
},
"docker-push"

These post processors will automatically import the generated Packer artifact into the Docker daemon and push it to a remote repository, simplifying a good majority of the deployment script from my previous blog post.

Advanced Provisioning With Packer For Docker And Vagrant

When Dockerfiles Aren’t EnoughDockerfiles are a limited solution to a complex problem: the provisioning of Docker images. …… Continue reading

Docker All The Things: Nginx And Supervisor

Published on December 14, 2013