-
Notifications
You must be signed in to change notification settings - Fork 2
Comparing docker with Samvera Ansible roles
Samvera-ansible - https://github.com/curationexperts/ansible-samvera
Nurax - https://github.com/curationexperts/nurax
https://github.com/curationexperts/ansible-samvera/blob/master/roles/clamav/tasks/main.yml
https://github.com/tiredofit/docker-clamav
https://github.com/curationexperts/ansible-samvera/blob/master/roles/fedora/templates/tomcat7.j2
Add opts for the following
- Data directory
- Postgres database
- Memory settings
- built with libraries enabled
https://github.com/curationexperts/ansible-samvera/blob/master/roles/ffmpeg/tasks/main.yml
- Check config files
https://github.com/curationexperts/ansible-samvera/blob/master/roles/first_deploy/tasks/main.yml#L78-L113 - Set min and max memory?
https://github.com/curationexperts/ansible-samvera/blob/master/roles/solr/defaults/main.yml - Set nofile and nproc limits?
https://github.com/curationexperts/ansible-samvera/blob/master/roles/solr/files/solr_limits.conf
- Check config
https://github.com/curationexperts/ansible-samvera/blob/master/roles/first_deploy/templates/database.yml.j2
https://github.com/curationexperts/ansible-samvera/blob/master/roles/fits/tasks/main.yml
Note This install version 0.8.4 while we are installing fits 1.0.5, so ignoring.
https://github.com/curationexperts/ansible-samvera/tree/master/roles/imagemagick/tasks
Useful to install packages installed above
https://github.com/curationexperts/ansible-samvera/blob/master/roles/node/tasks/main.yml
https://github.com/nodejs/docker-node
If we want both rails and node image in the dockerfile, we could do a multi-stage build
https://docs.docker.com/develop/develop-images/multistage-build/
- Check all packages are installed
https://github.com/curationexperts/ansible-samvera/blob/master/roles/packages/tasks/main.yml
- backup?
https://github.com/curationexperts/ansible-samvera/blob/master/roles/postgres/tasks/main.yml
- start in production mode
https://github.com/curationexperts/ansible-samvera/blob/master/roles/sidekiq/templates/sidekiq.service.j2#L31-L45
https://medium.freecodecamp.org/how-to-setup-log-rotation-for-a-docker-container-a508093912b2