Page MenuHomeSolus

Initial inclusion of packer
ClosedPublic

Authored by mikechau on Jul 22 2018, 9:48 AM.
Tags
None
Referenced Files
F11073814: D3369.id.diff
Sat, Aug 12, 5:05 AM
F11073813: D3369.id8336.diff
Sat, Aug 12, 5:05 AM
F11073812: D3369.id8470.diff
Sat, Aug 12, 5:05 AM
F11055375: D3369.diff
Fri, Aug 11, 1:51 AM
F10889121: D3369.diff
Jun 27 2023, 2:56 PM
F10828398: D3369.id8336.diff
Jun 4 2023, 9:18 AM
F10774009: D3369.id8470.diff
May 22 2023, 2:17 AM
F10773829: D3369.id.diff
May 22 2023, 12:35 AM
Subscribers

Details

Reviewers
DataDrake
Group Reviewers
Triage Team
Maniphest Tasks
T6200: Packer
Commits
R4370:e5501e3f11f9: Initial inclusion of packer
Summary

Initial commit of packer, fixes T6200.

Test Plan
  • Created build template with docker builder, named as docker.json.
  • run packer validate docker.json to confirm template is valid.
  • run packer build docker.json

Diff Detail

Repository
R4370 packer
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Config I used:

docker.json:

{
  "builders": [
    {
      "type": "docker",
      "image": "ubuntu",
      "commit": true
    }
  ],
  "provisioners": [
    {
      "inline": [
        "echo hello"
      ],
      "type": "shell"
    }
  ]
}

docker build docker.json output:

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:30e04ddada6eb09c12330c7df72cad1573916c7100168c34076808169ff6d805
    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-docker164405582:/packer-files -d -i -t ubuntu /bin/bash
    docker: Container ID: bbb118b6d47278b0d1cb22dfcad4d88defa0667bd2ac42b8cdac974ac7e21681
==> docker: Provisioning with shell script: /tmp/packer-shell625042236
    docker: hello
==> docker: Committing the container
    docker: Image ID: sha256:955a4251f96c6198b27dd0a4fd36de4a0868f7351e0e115d0df8ce466ce83676
==> docker: Killing the container: bbb118b6d47278b0d1cb22dfcad4d88defa0667bd2ac42b8cdac974ac7e21681
Build 'docker' finished.

==> Builds finished. The artifacts of successful builds are:
--> docker: Imported Docker image: sha256:955a4251f96c6198b27dd0a4fd36de4a0868f7351e0e115d0df8ce466ce83676
This revision is now accepted and ready to land.Jul 25 2018, 11:38 AM
This revision was automatically updated to reflect the committed changes.