dimanche 28 décembre 2014

Django + Docker + Elastic Beanstalk: WARNING [django.request:143] Not Found:

I am trying to deploy my django application in a Docker entire to Elastic Beanstalk. The docker container runs fine locally, but I am having problems with the upload.


I am serving my application with uWSGI for dynamic content and Amazon S3 for static files. uWSGI is running on port 8000, which I have exposed in my Dockerfile. I want ElasticBeanstalk to pull my docker image from DockerHub. Here is my Dockerrun.aws.json file:



{
"AWSEBDockerrunVersion": "1",
"Authentication": {

"Bucket": "my-bucket",
"Key": "docker/dockercfg"
},
"Image": {
"Name": "me/my-repo",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "8000"
}
],
"Logging": "/var/eb_log"
}


And when I check my uwsgi.log file inside the container I get an endless stream of:



[pid: 22|app: 0|req: 112/262] 172.17.42.1 () {32 vars in 455 bytes} [Sun Dec 28 23:08:00 2014] GET //my-app.elasticbeanstalk.com => generated 3397 bytes in 123 msecs (HTTP/1.1 404) 4 headers in 133 bytes (1 switches on core 0)
397 bytes in 123 msecs (HTTP/1.1 404) 4 headers in 133 bytes (1 switches on core 0)
[28/Dec/2014 23:08:00] WARNING [django.request:143] Not Found: /my-app.elasticbeanstalk.com


I'm not really sure where these errors are coming from... anybody have any input?





Aucun commentaire:

Enregistrer un commentaire