umn-asr / peoplesoft_course_class_data

0 stars 0 forks source link

Create production Dockerfile #74

Closed morse255 closed 2 days ago

morse255 commented 2 days ago

This PR adds the production target to our Dockerfile and adds the standard Docker scripts to build that target. It also includes a script/prod_run script that can be used to start a staging or production container locally. This was needed to test the changes to our production Dockerfile, so we include it in this PR.

The default command for the production container is bin/peoplesoft_course_class_data. This mostly works, but I cannot figure out how to get DaemonKit to log properly to STDOUT. I am seeing errors when I stop the container: log writing failed. can't be called from trap context. I suspect this issue has something to do with DaemonKit being a very old dependency and unmaintained. That said, my intention is to replace the existing daemon-kit and rufus-scheduler gems with the whenever gem, so I think we can just ignore this issue for the time being.

Some notable items: