Running a Docker container on AWS Elastic Beanstalk – Where is my web app?

  • I deployed an Application from a Docker Container to AWS Elastic Beanstalk Using the Elastic Beanstalk Console.
  • After finishing deploying Web Application on AWS Elastic Beanstalk – Environment status is green.
  • I clicked the URL link on the environment dashboard to view
    my web application.

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?

  • AWS Beanstalk docker image automatic update doesn't work
  • Docker or Docker for AWS and Deployment on AWS EC2
  • How to deploy docker container image updates from AWS ECR to ECS?
  • AWS ECS container with tomcat + jdk
  • Kubernetes and vSphere, AWS
  • Can't mount HOST folder into Amazon Docker Container?
  • 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”.

    1. Pick an application name.
    2. Environment tier: Web Server
    3. Predefined Configuration: Docker
    4. Environment type: Load balancing, autoscaling
    5. On the next screen select Upload your own and find the zip you created.
    6. Additional Resources. Next.
    7. Configuration Details. Next.
    8. Environtment Tags. Next.
    9. Scroll down and click Launch.

  • How to build docker images on AWS EC2 Windows Server instance?
  • ECS Docker Container get env variable running cron
  • Authorization error with AWS
  • Docker Compose env_file in Multicontainer Elastic Beanstalk
  • EC2 Instances - Are they Just Containers
  • Deploy Docker container using Kubernetes
  • One Solution collect form web for “Running a Docker container on AWS Elastic Beanstalk – Where is my web app?”

    “Congratulations! …” page is what you usually see when you choose “Sample application” option in the Application Version step:

    enter image description here

    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

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.