amazon-web-services - AWS Docker 戈兰。 'eb deploy' 错误

标签 amazon-web-services go docker amazon-elastic-beanstalk

我正在尝试将 golang docker 部署到 AWS。

  1. 我使用预定义的 FROM golang:1.4.2-onbuild
  2. eb 本地运行 - 运行良好,没问题。
  3. 如果我压缩并上传 zip 文件,它可以在 AWS 上正常运行。
  4. ...但是当我尝试“eb deploy”时,我不断收到此错误。

有什么建议吗

谢谢。

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. 

最佳答案

将您的项目文件夹移动到

/go/src/{your_project}

问题是我的项目文件夹在 $GOPATH 文件夹之外。一旦我解决了这个问题,“eb deploy”就开始工作了。

关于amazon-web-services - AWS Docker 戈兰。 'eb deploy' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32263096/

相关文章:

php - AWS 剥离 HTTP header ?

java - AWS ECS 任务进入挂起状态

node.js - 无法在 Ubuntu 16.04 AWS EC2 实例上使用 puppeteer 启动 headless Chrome

android - AWS auth ui sdk 需要 minSdkVersion 23,为什么?

go - 递归打印树状结构的完整列表时遇到一些问题

scala - Intellij CE 2018.2 + docker 容器中的 SBT : Remote debug breakpoints not working

docker - Docker缩减规模和Consul

amazon-web-services - 更改集操作在 AWS Ruby SDK 中不起作用

redirect - Amazon S3 重定向规则 - 缺少 GET 数据

go - 为什么我不能使用在不同包中定义的结构?