Page MenuHomeSolus

Update packer to 1.3.2
ClosedPublic

Authored by mikechau on Nov 3 2018, 9:40 AM.

Details

Summary

Update packer to 1.3.2.

Test Plan
  • 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:29934af957c53004d7fb6340139880d23fb1952505a15d69a03af0d1418878cb
    docker: Status: Image is up to date for ubuntu:latest
==> docker: Starting docker container...
    docker: Run command: docker run -v /home/mike/.packer.d/tmp/packer-docker019511421:/packer-files -d -i -t ubuntu /bin/bash
    docker: Container ID: 45bfb419fdd11b056c9ad5fbea3c171ac67bc45162cdb74fd4290499e3b8b87f
==> docker: Using docker communicator to connect: 172.17.0.2
==> docker: Provisioning with shell script: /tmp/packer-shell401814698
    docker: hello
==> docker: Committing the container
    docker: Image ID: sha256:1bbd2ec6fb5703ca03a3cb22ee0d3d1c008669364befab648593aa21c16aa4b2
==> docker: Killing the container: 45bfb419fdd11b056c9ad5fbea3c171ac67bc45162cdb74fd4290499e3b8b87f
Build 'docker' finished.

==> Builds finished. The artifacts of successful builds are:
--> docker: Imported Docker image: sha256:1bbd2ec6fb5703ca03a3cb22ee0d3d1c008669364befab648593aa21c16aa4b2

Diff Detail

Repository
R4370 packer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mikechau created this revision.Nov 3 2018, 9:40 AM
mikechau requested review of this revision.Nov 3 2018, 9:40 AM
DataDrake accepted this revision.Nov 5 2018, 5:26 PM
DataDrake added a subscriber: DataDrake.

LGTM. Thanks!

This revision is now accepted and ready to land.Nov 5 2018, 5:26 PM
This revision was automatically updated to reflect the committed changes.