Resilient Docker Deployment Bobsleigh

I am trying to deploy my application with a docker and an elastic beanstalk. My Dockerrun.aws.json file looks like

{
  "AWSEBDockerrunVersion": "1",
  "Image": {
    "Name": "jvans/maven_weekly",
    "Update": "true"
  },
  "Ports": [
    {
    "ContainerPort": "5000"
  }],
  "Volumes": [
    {
      "HostDirectory": "/Users/jamesvanneman/Code/maven_weekly/maven_weekly",
      "ContainerDirectory": "/maven_weekly"
  }
  ],
  "Logging": "/var/log/nginx"
}

I created this application with eb create, and when I started eb deploy, I got

Docker container quit unexpectedly after launch: Docker container quit 

unexpectedly on Mon Sep 21 01:15:12 UTC 2015:. Check snapshot logs for details. 
Hook /opt/elasticbeanstalk/hooks/appdeploy/enact/00run.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.

In var/log/eb-activity.logI see the following errors:

  Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Sep 21 01:08:52 UTC 2015:. Check snapshot logs for details. (ElasticBeanstalk::ExternalInvocationError)
caused by: 83ea9b7f9a069eeb8351fef7aaedb8374f7dfe300a5e0aaeba0fe17600583175
[2015-09-21T01:08:52.205Z] INFO  [2246]  - [Application deployment/StartupStage1/AppDeployEnactHook/00run.sh] : Activity failed.

So there seems to be a problem running the script. If I ssh into a container and try to start it manually, I do not get any additional help from error messages.

eb ssh

sudo /opt/elasticbeanstalk/hooks/appdeploy/enact/00run.sh

Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Sep 21 01:34:52 UTC 2015:. Check snapshot logs for details.
Msg: Docker container quit unexpectedly after launch: Docker container quit unexpectedly on Mon Sep 21 01:34:52 UTC 2015:. Check snapshot logs for details.

Are snapshot magazines anything else than var/log/eb-activity.log? Any idea what is going on / how can I debug this further?

+4
source share
2 answers

- /var/log/eb-docker/containers/.
, , .

+6

/var/log/eb-docker/containers/eb-current-app/unexpected-quit.log

, eb logs --all, eb ssh. stdout stderr , .

+2

Source: https://habr.com/ru/post/1608249/


All Articles