It always navigates to web page have string
Congratulations!
Your Docker Container is now running in Elastic Beanstalk on your own dedicated environment in the AWS Cloud
I read log file, I don't see any error. Here's its link: http://dockstalker-env.elasticbeanstalk.com/ Where is my web app? Do i 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 I hit the beanstalk I put 3 files into a .zip file. Call it aws-test.zip
Head to the AWS developer console and select "Elastic Beanstalk". Then pick "Create New Application".
"Congratulations! ..." page is what you usually see when you choose "Sample application" option in the Application Version step:
Please double-check what version you have specified. Also, it might be useful to check this tutorial: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deployment.source.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.