Skip to content

Does this plugin still work? #7

@frodopwns

Description

@frodopwns

I have attempted to use this module but am getting this error:

==> docker: Running post-processor: docker-dockerfile
Build 'docker' errored: 1 error(s) occurred:

* Post-processor failed: Unknown artifact type: packer.docker
Can only tag from Docker builder artifacts.


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

* Post-processor failed: Unknown artifact type: packer.docker
Can only tag from Docker builder artifacts.

==> Builds finished but no artifacts were created.

My build looks like this:

{
    "builders":[{
        "type": "docker",
        "image": "frodopwns/macrobase",
        "export_path": "image.tar",
        "volumes": {
            "/etc/ansible": "/etc/ansible",
            "/etc/ansible": "/etc/ansible",
            "/root/.ssh": "/root/.ssh"
        },
        "run_command": ["-d", "-i", "-t", "{{.Image}}", "/bin/bash"]
    }],
    "provisioners":[
        {
            "type": "ansible-local",
            "playbook_file": "provisioning/local.yml",
            "role_paths": [
                "provisioning/roles/manage_site"
            ],
            "host_vars": "provisioning/host_vars",
            "extra_arguments": ["--extra-vars 'test_var=muahahahah'", "-vvvv"]
        }
    ],
    "post-processors": [
      {
        "type": "docker-dockerfile",
        "entrypoint": ["/bin/bash", "/start.sh"],
        "expose": [80]
      }
  ]
}

Packer version: 0.8.6

I followed your instructions which were pretty clear until the part about putting the binary file in the "packer" directory. My packer files are all in /usr/local/bin at the moment so I put it in there...Is this wrong?

Thanks!

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