> On 21 Feb 2016, at 12:12 AM, Jaqen Nki <[email protected]> wrote:
> 
> Hey
> 
> Im trying to figure out how to develop a flaskapp in a docker container its a 
> little confusing.  Heres my setup:
> 
> -Mac running an ubuntu 14.04 vm.  On ubuntu have docker, apache2 installed.  

Why aren’t you just using Docker Toolbox?

Easier than setting up your own VM and getting Docker running on it.

> -I have docker basics down, and am able to ssh into the vm from mac terminal, 
> and login to dockerhub and run tutum/hello-world on a specified port
> 
> At this point im lost on how to develop/deploy a flask app in docker for a 
> basic website, and have found unclear answers
> 
>      Maybe a simple guide on dockerizing/developing flask apps would be 
> beneficial because Im kind of lost.
> Im just starting down this rabbit hole but is docker basically taking a 
> requirements image of your linux server and containerizing it?
> Implying that I still set up my configuration as done here ? : 
> https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps

Have a read of:

http://blog.dscpl.com.au/2014/12/hosting-python-wsgi-applications-using.html 
<http://blog.dscpl.com.au/2014/12/hosting-python-wsgi-applications-using.html>

So long as you have a wsgi.py file in top directory which exposes a 
‘application’ object, you can use that Docker image I have.

Unfortunately the future of that Docker image of mine is uncertain. This is 
because Docker Hub is broken and will not build images which want to use 
‘setcap’. That image needed that because it was using port 80 but still want to 
have you run as non root user. I have new Docker images in the works which are 
even better, but how am going to get everyone to convert I don’t know given is 
so hard to get image on Docker Hub updated right now to even point people at an 
alternative.

I have a lot of other blog posts on my site about running Python web 
applications in Docker.

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to