I am creating a Docker container that pulls a perl / mojolicious repo from bitbucket but I am having problems. I have a Dockerfile:
# DOCKER-VERSION 0.3.4 FROM perl:latest MAINTAINER My Name myname@name.com # Update aptitude with new repo RUN apt-get update # Install software RUN apt-get install -y git # Make ssh dir RUN mkdir /root/.ssh/ # Copy over private key, and set permissions ADD repo-key /root/.ssh/id_rsa # Create known_hosts RUN touch /root/.ssh/known_hosts # Add bitbuckets key RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts RUN curl -L http:
And, locally, after docker build -t name/project . he builds great and says "Successfully built."
I fixed it using the repo-key file and applied it to Elastic Beanstalk, I clicked on the Upload and Deploy button (I successfully deployed a sample game 2048 and tried to replicate it).
This is returned from Dockerrun.aws.json: No such file or directory . I think this is strange because the documentation says that Dockerfile or Dockerrun.aws.json can be used independently for different needs. But be that as it may, I gave him a short, hopefully insignificant, Dockerrun.aws.json, like this:
{ "AWSEBDockerrunVersion": "1", "Ports": [ {"ContainerPort": "8080"} ], "Volumes": [] }
It still fails, and now the log says [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/04run.sh] command failed with error code 1: and then Docker container quit unexpectedly after launch .
Can someone help me fix these files?
source share