openml / openml.org

New OpenML website
https://new.openml.org
BSD 3-Clause "New" or "Revised" License
24 stars 18 forks source link

Docker #324

Closed josvandervelde closed 7 months ago

josvandervelde commented 7 months ago
  1. Added docker files. Using python3.8 (which still has security updates), because newer python (at least 3.11) has conflicts with the dependencies.
  2. Made sure it doesnt have to run as sudo. It needed to run as sudo because it was creating caching directories as sudo. I changed the caching directories to ~/.cache/openml.

I published the image to https://hub.docker.com/r/openml/frontend. This doesn't have a README yet. Adding a Readme to DockerHub isn't as simple as you'd think. The easiest way seems to be to setup automatic docker builds. I don't need that now, so I'm ignoring this for now.

You can test this PR manually by using

docker run --rm -d -p 5000:5000 --name openml-frontend openml/frontend
# go to localhost:5000
docker kill openml-frontend