Update packer to 1.3.3, changelog can be found here.
Details
Details
- Reviewers
DataDrake - Group Reviewers
Triage Team - Commits
- R4370:3493f0c7fd7f: Update packer to 1.3.3
- Created build template with docker builder, named as docker.json:
{
"builders": [
{
"type": "docker",
"image": "ubuntu",
"commit": true
}
],
"provisioners": [
{
"inline": [
"echo hello"
],
"type": "shell"
}
]
}- Run packer validate docker.json to confirm template is valid.
- Run packer build docker.json builds succesfully:
docker output will be in this color.
==> docker: Creating a temporary directory for sharing data...
==> docker: Pulling Docker image: ubuntu
docker: Using default tag: latest
docker: latest: Pulling from library/ubuntu
docker: Digest: sha256:6d0e0c26489e33f5a6f0020edface2727db9489744ecc9b4f50c7fa671f23c49
docker: Status: Image is up to date for ubuntu:latest
==> docker: Starting docker container...
docker: Run command: docker run -v /home/sysop/.packer.d/tmp/packer-docker314021031:/packer-files -d -i -t ubuntu /bin/bash
docker: Container ID: 90727e370ca3b8f6495ffa7d60c4b7cd8233f9f9c5f06d3eeffb44b6652a18bb
==> docker: Using docker communicator to connect: 172.17.0.2
==> docker: Provisioning with shell script: /tmp/packer-shell917307666
docker: hello
==> docker: Committing the container
docker: Image ID: sha256:8cb94097da6bae9e25f3ba7c4f05464c65c1c2cf9522ab9360738df8e576967c
==> docker: Killing the container: 90727e370ca3b8f6495ffa7d60c4b7cd8233f9f9c5f06d3eeffb44b6652a18bb
Build 'docker' finished.
==> Builds finished. The artifacts of successful builds are:
--> docker: Imported Docker image: sha256:8cb94097da6bae9e25f3ba7c4f05464c65c1c2cf9522ab9360738df8e576967cDiff Detail
Diff Detail
- Repository
- R4370 packer
- Lint
Lint Not Applicable - Unit
Tests Not Applicable