本文介绍了为什么我收到否认泊坞部署许可?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了弹性魔豆使用的指令举办戏剧框架2的应用程序有这个的项目。

I have created an application in Elastic Beanstalk to host a play framework 2 app there using instructions from this project.

我已经打包项目酷似泊坞需要,但是当我最终压缩上传到我在这个流接收到权限被拒绝的错误应用:

I have packaged the project exactly like Docker needs but when I upload the final zip to the application I receive a permission denied error in this flow:

  • 环境更新开始。
  • 在部署新版本的实例(S)。
  • 在成功扳回一dockerfile / java的:最新
  • 在成功打造aws_beanstalk /舞台应用内
  • 泊坞容器发射后意外退出:2014年9月12日23时32分39秒EXEC:泊坞窗容器上周五09月12日23时32分44秒UTC 2014年意外退出斌/我的样本项目 : 没有权限。检查快照日志了解详细信息。
  • Environment update is starting.
  • Deploying new version to instance(s).
  • Successfully pulled dockerfile/java:latest
  • Successfully built aws_beanstalk/staging-app
  • Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Fri Sep 12 23:32:44 UTC 2014: 2014/09/12 23:32:39 exec: "bin/my-sample-project": permission denied. Check snapshot logs for details.

我已经花了几个小时就这一点没有任何成功。

I have spent hours on this without any success.

这是我的根Dockerfile的内容:

This is the content of my root Dockerfile:

FROM dockerfile/java
MAINTAINER Cristi Boariu <myemail>
EXPOSE 9000
ADD files /
WORKDIR /opt/docker
RUN ["chown", "-R", "daemon", "."]
USER daemon
ENTRYPOINT ["bin/mytweetalerts"]
CMD []

任何提示怎么解决这个问题呢?

Any hint how to solve this issue?

推荐答案

下面是我所做的解决同样的问题,但我不知道哪一部分专门解决它。

Here's what I did to solve this same issue, though I'm not sure which part specifically solved it.

我的DockerFile是这样的:

My DockerFile looks like:

FROM dockerfile/java
MAINTAINER yourNameHere
EXPOSE 9000 9443
ADD files /
WORKDIR /opt/docker
RUN ["chown", "-R", "daemon", "."]
# Make sure myApp is excutable
RUN ["chmod", "+x", "bin/myApp"]
USER daemon
# If running a t1.micro or other memory limited instance
# be sure to limit play memory. This assumes play 2.3.x
ENTRYPOINT ["bin/myApp", "-mem", "512", "-J-server"]
CMD []

请参阅 https://www.playframework.com/documentation/2.3.x/ProductionConfiguration 关于设置JVM内存信息。

See https://www.playframework.com/documentation/2.3.x/ProductionConfiguration for info on setting jvm memory.

我的Dockerrun.aws.json(也必须)是这样的:

My Dockerrun.aws.json (also required) looks like:

{
  "AWSEBDockerrunVersion": "1",
  "Ports": [
    {
      "ContainerPort": "9000"
    }
  ]
}

最后我的发挥应用程序的生命在文件的/ opt /泊坞窗与运行脚本泊坞窗/箱。所有这一切都压缩并发送至EB。

Finally my play application lives in files/opt/docker with the run script in docker/bin. All this is zipped up and sent to EB.

这篇关于为什么我收到否认泊坞部署许可?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-10 21:41