amazon web services - Running a Docker container on AWS Elastic Beanstalk - Where is my web app? -


  • i deployed application docker container aws elastic beanstalk using elastic beanstalk console.
  • after finishing deploying web application on aws elastic beanstalk - environment status green.
  • i clicked url link on environment dashboard view web application.

it navigates web page have string

congratulations! docker container running in elastic beanstalk on own dedicated environment in aws cloud 

i read log file, don't see error. here's link: http://dockstalker-env.elasticbeanstalk.com/ web app? miss anything?

dockerfile

from ubuntu:14.04  run apt-get update && apt-get upgrade -y  run apt-get install -y git git-core wget zip nodejs npm  expose 8080  # startup add start.sh /tmp/   run chmod +x /tmp/start.sh   cmd ./tmp/start.sh   

start.sh

cd /tmp  rm -rf docker-node-test; true  git clone https://github.com/incrediblemolk/docker-node-test.git  cd docker-node-test  npm install  nodejs app.js   

dockerrun.aws.json

{     "awsebdockerrunversion": "1",     "image": {         "name": "ubuntu:14.04"     },     "ports": [         {              "containerport": "8080"         }     ] } 

before hit beanstalk put 3 files .zip file. call aws-test.zip

head aws developer console , select "elastic beanstalk". pick "create new application".

  1. pick application name.
  2. environment tier: web server
  3. predefined configuration: docker
  4. environment type: load balancing, autoscaling
  5. on next screen select upload own , find zip created.
  6. additional resources. next.
  7. configuration details. next.
  8. environtment tags. next.
  9. scroll down , click launch.

"congratulations! ..." page see when choose "sample application" option in application version step:

enter image description here

please double-check version have specified. also, might useful check tutorial: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deployment.source.html


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -