Tag: amazon web services

ElasticSearch on Elastic Beanstalk

I’m trying to get ElasticSearch running in an Elastic Beanstalk environment. Using Docker image it’s fairly straightforward to get one instance running in a load balanced environment. However, when I try to add more instances to the cluster, they fail to discover each other and every new one becomes a new_master. My Dockerfile looks like […]

EC2 with Docker and EBS volume, mount EBS volume inside container during init

I actually trying to achieve something with Docker but I’m stuck, there is my problem. I have my container hosted on EC2 with my web app inside it. My webapp use as database a JCR repository which is basically a file stored where you want. So each time my web app start, if the repository […]

Why are Docker build commands running so slow in Elastic Beanstalk?

EB was complaining that my build was timing out, so I ssh’d into an instance and decided to run docker build myself to see what was happening. Every step, even something as simple as a mkdir takes ages to run. Even a WORKDIR stalls for at least a minute or two before executing. On my […]

Setting Docker container hostname on Elastic Beanstalk

I would like to set the hostname for a Docker container deployed on AWS Elastic Beanstalk manually. You can set the hostname when spinning up a container with docker run -h HOSTNAME, but I can’t figure out how (or even if) to pass custom arguments to the docker run command. The Dockerrun.aws.json file seems a […]

How to link from docker-compose to Amazon RDS

My docker-compose.yml looks something like this: django: build: . user: django links: # LINK TO AMAZON RDS? command: /gunicorn.sh env_file: config/settings/.env nginx: build: ./compose/nginx links: – django ports: – “” How do I link the django container to the Amazon RDS, which has an url like: example.blahblahblah.eu-west-1.rds.amazonaws.com:5432

Using AWS EFS with Docker

I am using the new Elastic File System provided by amazon, on my single container EB deploy. I can’t figure out why the mounted EFS cannot be mapped into the container. The EFS mount is successfully performed on the host at /efs-mount-point. Provided to the Dockerrun.aws.json is { “AWSEBDockerrunVersion”: “1” “Volumes”: [ { “HostDirectory”: “/efs-mount-point”, […]

Deploy image to AWS Elastic Beanstalk from private Docker repo

I’m trying to pull Docker image from its private repo and deploy it on AWS Elastic Beanstalk with the help of Dockerrun.aws.json packed in zip. Its content is { “AWSEBDockerrunVersion”: “1”, “Authentication”: { “Bucket”: “my-bucket”, “Key”: “docker/.dockercfg” }, “Image”: { “Name”: “namespace/repo:tag”, “Update”: “true” }, “Ports”: [ { “ContainerPort”: “8080” } ] } Where “my-bucket” […]

Docker mount S3 container

What is your best practise for mounting an S3 container inside of a docker host? Is there a way to do this transparently? Or do I rather need to mount volume to the host drive using the VOLUME directive, and then backup files to S3 with CRON manually?

AWS Beanstalk and Docker ports = what manner of tomfoolery is this?

So I have a docker application that runs on port 9000, and I’d like to have this accessed only via https rather than http, however I don’t appear to be making any sense of how amazon handles ports. In short I’d like only expose port 443 and not 80 (on the load balancer layer and […]

AWS Docker deployment

I have a custom docker image uploaded to ECS. I opened up the permissions to try and get through this issue (I will lock it down again once I can get this to work). I am attempting to deploy the docker image to elastic beanstalk. I have a docker enabled elastic beanstalk environment set up. […]

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