Tag: elastic beanstalk

why is my elastic beanstalk instance being replaced when I deploy?

I have a docker based elastic beanstalk environment, hosting a ruby on rails web application. The environment is a single instance box. whenever I issue an eb deploy command, elastic beanstalk terminates the instance and launches a new one. I was expecting that EB would launch a new container in the same instance and swap […]

Specifying Docker daemon host in Elastic Beanstalk

I’d like to set a proper docker host when running the daemon on boot. Is there any way I can pass runtime flags? Ideally I’d like to reproduce: docker -H 0.0.0.0:2375 -d &

Failed to pull Docker image Beanstalk

Every ElasticBeanstalk deploy with eb_deployer fails with this error: [2015-02-11T15:02:31.551Z] INFO [6528] – [CMD- Startup/StartupStage0/AppDeployPreHook/03build.sh] : Starting activity… [2015-02-11T15:02:33.280Z] INFO [6528] – [CMD- Startup/StartupStage0/AppDeployPreHook/03build.sh] : Activity execution failed, because: command failed with error code 1: /opt/elasticbeanstalk/hooks/appdeploy/pre/03build.sh Pulling repository foo/bar 2015/02/11 15:02:33 Error: image foo/bar not found Failed to pull Docker image foo/bar:staging: Pulling repository foo/bar […]

Install composer dependencies while deploying

I’m using Elastic Beanstalk to deploy my application as a Single Docker Application. My Dockerfile does composer install while deploying, but I get a Could not authenticate against github.com error. I use these lines in my Dockerfile to install my dependencies: WORKDIR /www RUN [“composer”, “install”, “-o”] How would I solve this issue?

Custom DOCKER_HOST in Elastic Beanstalk Docker environment

I have an ElasticBeanstalk setup using Amazon’s Docker AMI. I have just started experimenting with setting up a new environment within my EB Application. It is running as Webserver with Docker. What I am trying to do with this environment is have Docker daemon running that is running on TCP rather than a Unix socket. […]

Run one app on multiple elastic beanstalk instances

I have one Flask app which handles a number of things which are common to a number of elastic beanstalk applications: logging, database/ORM, error handling, are all handled by Flask, and similar across elastic beanstalk instances. I have four eb applications, which each do different jobs, demand different docker images, and so on. One approach […]

AWS Gogs deployment using Docker image

I am trying to deploy this Docker Gogs image to AWS. It worked fine on my local Docker instance, but I get the following error on AWS: Failed to build Docker image aws_beanstalk/staging-app: github.com/gogits/gogs /goroot/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory [0m2015/02/15 15:09:04 The command [/bin/sh -c go get -v -tags sqlite] returned a non-zero […]

Dockerfile image path contains invalid charector

Deploying to Elastic Beanstalk fails with dockerfile that starts with FROM dockerfile/java Checking the logs reveals: Invalid repository name (java), only [a-z0-9-_.] are allowed Failed to pull Docker image dockerfile/java:latest The validation regex does not include / though that is the image location. Building and running from the dockerfile works fine locally. Pushing the local […]

Can I specify a file instead of a directory to send to the container in the Dockerrun.aws.json file?

I cannot find the reference documentation to the available fields in Dockerrun.aws.json. I’m trying to import /dev/log from the host into the container so that I can centralize logs to logstash. From the example, we can see that there is “HostDirectory” and “ContainerDirectory” however I can’t find any analogue for “HostFile”/”ContainerFile”. How can I specify […]

List folders in Docker Elastic Beanstalk instance

I’m deploying an application to a pre-configured GlassFish Docker instance running in Elastic Beanstalk. I need to download a library file into a specific folder in the GlassFish directory. So in my Dockerfile I put: RUN curl -L -o /mysql-connector-java-5.1.34.jar https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.34/mysql-connector-java-5.1.34.jar The problem is this doesn’t place the file into the specific directory I need. […]

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