comocheng / kineticmodelssite

a django site for kinetic models
4 stars 9 forks source link

Containerize a deployment with docker #129

Closed kiancm closed 3 years ago

kiancm commented 3 years ago

Use docker and docker-compose to containerize the webserver and database deployment.

kiancm commented 3 years ago

Anaconda does not play well with docker containers, even with continuumio's own docker image. The solution is to use 'conda-run' to run the server in a conda environment, but this command does not direct output to stdout, meaning that we can't see output from the server or log it easily. https://pythonspeed.com/articles/activate-conda-dockerfile/#working

rwest commented 3 years ago

Should we use logging more anyway?