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?

  • Best way to to implement Spark + AWS + Caffe/CUDA?
  • Does Docker provide any memory efficiency on top of a VM?
  • kubernetes and debugging it in general
  • Dockerfile image path contains invalid charector
  • Using Spinnaker to deploy a Docker image from dockerhub to Aws Eb
  • Deploying Docker Data Volumes
  • 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 can I pull anonymously from docker hub while still having access to a private registry?
  • How can I setup Docker container with individual IP address on EC2 instance?
  • Docker consumer on AWS while using RabbitMQ
  • Creating and running docker containers cluster with Kubernetes on AWS
  • AWS docker set --no-cache flag
  • How to arrange web application docker containers in production stage
  • 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.