wooey / Wooey

A Django app that creates automatic web UIs for Python scripts.
http://wooey.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.12k stars 182 forks source link

Official Docker Image #321

Open pymenow opened 4 years ago

pymenow commented 4 years ago

Was glad to see Wooey available on docker. https://hub.docker.com/u/wooey I downloaded the latest image and ran it , but it only executes the tests and then exists. What am i missing ?

Chris7 commented 4 years ago

Wooey has a few pieces that are needed (databases, etc.). Have you seen the docker-compose files that set some of this up? https://github.com/wooey/Wooey/blob/master/docker.

Chris7 commented 4 years ago

There should probably be a section about how to use the docker image as well. If you start on this route, would love any notes you take :)

pymenow commented 4 years ago

Thanks as usual chris, I was able to get docker up and running with a si ple docker-compose up. I did make some edits to the yml files for default ports and volume binding for user uploads. Since I had access to user_settings.py - I customised this including the Allowed hosts .

I will repeat this and have a few more details.

pymenow commented 4 years ago

git clone https://github.com/wooey/Wooey.git cd docker vim docker-compose.yml (changed the ports to 10000:8080) vim docker-compose.common.yml (changed the volume for my custom path) volumes :

All good !

jkpr commented 4 years ago

I ran into that as well when pulling the image from dockerhub.

Perhaps the wooey image on dockerhub is meant to drop into docker-compose.yml and replace an extends at https://github.com/wooey/Wooey/blob/v0.12.0/docker/docker-compose.yml#L8 and https://github.com/wooey/Wooey/blob/v0.12.0/docker/docker-compose.yml#L19 with image: wooey or something like that? The docker-compose.yml could pull wooey from dockerhub rather than building from source files.