jeudi 27 août 2015

AWS Docker Golang. 'eb deploy' error

I am trying to deploy golang docker to AWS.

  1. I use predefined FROM golang:1.4.2-onbuild
  2. eb local run - works beautifully, no problem.
  3. If I zip and upload the zip file, it works on AWS no problem.
  4. ...but when I try 'eb deploy' I keep getting this error.

Any suggestion, please.

Thank you.

bash-3.2$ eb deploy WARNING: Deploying a previously deployed commit. INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
WARN: Failed to build Docker image aws_beanstalk/staging-app, retrying... ERROR: Failed to build Docker image aws_beanstalk/staging-app: urce files in /go/src/app [0mtime="2015-08-28T03:48:44Z" level="info" msg="The command [/bin/sh -c go-wrapper install] returned a non-zero code: 1" . Check snapshot logs for details. ERROR: [Instance: i-bf189879] Command failed on instance. Return code: 1 Output: (TRUNCATED)...n-zero code: 1" Failed to build Docker image aws_beanstalk/staging-app: urce files in /go/src/app [0mtime="2015-08-28T03:48:44Z" level="info" msg="The command [/bin/sh -c go-wrapper install] returned a non-zero code: 1" . Check snapshot logs for details. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03build.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI. INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1]. ERROR: Unsuccessful command execution on instance id(s) 'i-bf189879'. Aborting the operation. ERROR: Failed to deploy application.




Aucun commentaire:

Enregistrer un commentaire