Skip to content

Cannot run this plugin #4

@abessifi

Description

@abessifi

Hi,

Am trying to get the packer-post-processor-docker-dockerfile plugin working with packer 0.8.0 and docker 1.12.1 but I got this error:

(abessifi) $ packer build build_image.json

docker output will be in this color.

==> docker: Creating a temporary directory for sharing data...
==> docker: Starting docker container...
    docker: Run command: docker run -v /tmp/packer-docker858116389:/packer-files -d -i -t java:7-jre /bin/bash
    docker: Container ID: 69d94be8af6d0722c291fe69fdc80d16b44c57804fc7d67164c72776babc147f
==> docker: Committing the container
    docker: Image ID: sha256:342d88e59f9a24450e5f3a05c651dd36a2c0ab9b1b8996070ef1d3d267e4480c
==> docker: Killing the container: 69d94be8af6d0722c291fe69fdc80d16b44c57804fc7d67164c72776babc147f
==> docker: Running post-processor: docker-dockerfile
Build 'docker' errored: 1 error(s) occurred:

* Post-processor failed: Unknown artifact type: packer.post-processor.docker-import
Can only build with Dockerfile from Docker tag artifacts.

==> Some builds didn't complete successfully and had errors:
--> docker: 1 error(s) occurred:

* Post-processor failed: Unknown artifact type: packer.post-processor.docker-import
Can only build with Dockerfile from Docker tag artifacts.

==> Builds finished but no artifacts were created.

There is the content of the packer template file:

{
    "builders":[{
        "type": "docker",
        "pull": false,
        "image": "java:7-jre",
        "commit": true
    }],
    "provisioners":[],
    "post-processors": [
      [{
        "type": "docker-dockerfile",
        "entrypoint": ["/bin/bash"]
      },{
          "type": "docker-tag",
          "repository": "abessifi/fitnesse-debian-jessie",
          "tag": "0.1"
      }]
    ]
}

Could you please help ?

NOTE:

  • go version go1.5.1 linux/amd64
  • packer version 0.8.0
  • docker version 1.12.1
  • Linux distribution Debian/Jessie
  • Linux kernel version 3.16.0-4-amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions