Tag: elastic beanstalk

How to do container rollbacks using a multi docker configuration on elasticbeanstalk

I’m using EB to run multiple Docker containers using there multi docker configuration which makes use of ECS. I’m wanting to find out how I can manage container rollbacks?! At the moment if I push something to GitHub, my codepipeline initiates a codebuild, my codebuild then pushes the built container to our ECS registry with […]

Injecting the elastic beanstalk server URL into the node.js configuration using Docker

I have a Single Container Docker Elastic Beanstalk instance running my-server node.js web server application. Elastic Beanstalk gives the server URL like http://my-server.qwe8z32qw3.us-west-1.elasticbeanstalk.com. My node.js server sends information to another service, so I want to indicate the information is coming from that server URL and I want to give the service an html link directly […]

Elastic Beanstalk Multi-Container Environment cannot mount fuse mount as docker volume

I have a somewhat unique Elastic Beanstalk environment setup and requirements for a project I’m working on. I am running Amazon Elastic Beanstalk in a Multi-Container Environment. The instances run two containers as well as installing RioFS and mounting on the instance system via fuse. This works well up to this point. Let’s call the […]

PM2 Keymetrics on Docker on Elastic Beanstalk configuration

I am struggling getting Keymetrics to connect to my dockerized node server running on Elastic Beanstalk. The part of my dockerfile that sets up pm2 and links Keymetrics looks like this. I also expose the required ports: …. # Install pm2 so we can run our application RUN npm install pm2 -g #Expose the port […]

Nginx, AWS, EB, Docker, TCP Socket configuration 400 bad request

I am trying to let an pure TCP Socket connection on port 80 through to an Docker container on AWS also on port 80. So far i have: Setup the correct security groups to let port 80 through on the Load balancer, it is set to an tcp connection, not http. Been able to see […]

How to log PHP errors in an AWS Elastic Beanstalk Docker container

I have a PHP Docker container that I am deploying to AWS Elastic Beanstalk. I am relatively new to Docker and EB, so still learning. I am trying to log php errors to /var/log/php_error.log preferably. In php.ini I have set log_errors = On error_log = /var/log/php_error.log Then I load a page with error_log(“Hi”) inside it, […]

Elasticbeanstalk only sometimes pulls new Docker container?

I’m using codepipeline to trigger codebuilds for building new Docker images as code is committed to our repo. For some reason our elasticbeanstalk multi-container docker environment won’t always pull the latest image? Here is how I’ve setup the containerDefinitions: “containerDefinitions”: [ { “name”: “backend-development”, “image”: “us-west-2.amazonaws.com/backend:latest”, “portMappings”: [ { “hostPort”: 80, “containerPort”: 8080 } ], […]

docker kill and capturing logs or buffers

So elasticbeanstalk when updating or changing a docker deployed image will use docker kill in order to terminate the running docker container in order to be able to switch it for the new container that it is going to stage. I’d like to be able to capture the logging information from that container, but the […]

AWS Elastic Beanstalk with single container docker: Logging parameter in Dockerfile.aws.json

I have a hard time understanding how the Logging option works in the Dockerfile AWS configuration. According to the doc, I would hope/think that with the Dockerfile.aws.json below: { “AWSEBDockerrunVersion”: “1”, “Ports”: [ { “ContainerPort”: “1234” } ], “Logging”: “/var/log/applogs” } I would get everything that is logged in /var/log/appslogs in the container into the […]

AWS ElasticBeanstalk Multidocker is not creating an ECS task with a correct Cmd

I am deploying my node app on AWS ElasticBeanstalk using the multidocker option. The app appears to deploy successfully, however, I notice that the app (inside my docker) is not actually running. When I docker inspect <container_id> the running container, see that “Cmd”: null. If I inspect the ECS task definition created by beanstalk, I […]

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