Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official Docker Image #321

Open
pymenow opened this issue Apr 29, 2020 · 5 comments
Open

Official Docker Image #321

pymenow opened this issue Apr 29, 2020 · 5 comments

Comments

@pymenow
Copy link

pymenow commented Apr 29, 2020

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
Copy link
Member

Chris7 commented Apr 29, 2020

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
Copy link
Member

Chris7 commented Apr 29, 2020

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
Copy link
Author

pymenow commented Apr 29, 2020

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
Copy link
Author

pymenow commented Apr 29, 2020

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 :
- ./user_settings.py:/$WOOEY_PROJECT/$WOOEY_PROJECT/settings/user_settings.py
- ./user_uploads:/$WOOEY_PROJECT/$WOOEY_PROJECT/user_uploads
vim user_settings.py (changed allowed hosts and other customisations)
sudo ./manage createsuperuser
sudo docker-compose up

All good !

@jkpr
Copy link

jkpr commented Jul 17, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants