I added "native" support for ECR, see
https://github.com/mitchellh/packer/pull/3856

On 3 September 2016 at 14:13, Rickard von Essen <[email protected]
> wrote:

> This works for me:
>
> eval $(aws --profile=packer-demo ecr get-login); packer build
> ecr_docker.json
>
> With the following template - ecr_docker.json:
> {
>   "builders": [
>     {
>       "type": "docker",
>       "image": "alpine",
>       "run_command": ["-d", "-i", "-t", "{{.Image}}", "/bin/ash"],
>       "commit": true
>     }
>   ],
>   "post-processors": [
>     [
>       {
>         "type": "docker-tag",
>         "repository": "965990659467.dkr.ecr.eu-central-1.amazonaws.com/
> packer-test",
>         "tag": "latest"
>       },
>       {
>         "type": "docker-push",
>         "login": false,
>         "login_server": "https://965990659467.dkr.ecr.
> eu-central-1.amazonaws.com/packer-test"
>       }
>     ]
>   ]
> }
>
> But it should be fairly easy to extend docker-push postprocessor to
> support ECR. PR's are welcome.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/6ae55d45-2fae-4d17-9d8e-a4c3516a5af9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt_FO0mvDwCMLQMjEB1Fba5r1rhWicpbcCkLwcSL1%2BgtkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to