galaxyproject / ansible-galaxy

An Ansible role for managing a Galaxy server
https://galaxy.ansible.com/galaxyproject/galaxy
57 stars 75 forks source link

Add GRAVITY_CONFIG_FILE to systemd env #212

Closed dometto closed 5 months ago

dometto commented 5 months ago

I noticed the reason why the molecule runs for version 23.0 were failing was that supervisord was attempting to run Galaxy with the wrong config file. On the failing containers, /srv/galaxy/var/gravity/supervisor/supervisord.conf.d/_default_.d/galaxy_gunicorn_gunicorn.conf has:

command         = /srv/galaxy/venv/bin/galaxyctl --config-file /srv/galaxy/server/config/galaxy.yml.sample exec _default_ gunicorn

It looks like this is because the systemd unit file doesn't correctly set the GRAVITY_CONFIG_FILE environment variable.

Additionally, I locally ran into some issues requiring further apt dependencies to be installed on Ubuntu in order for some of Galaxy's dependencies to compile correctly. This does not seem to have lead to test failures on CI, my hunch is that this due to me using an ARM based machine locally, but I'm not sure. I've added the extra apt dependencies that I needed as they seem pretty sane, but feel free to chuck out that commit, of course :)

dometto commented 5 months ago

Can confirm that this passes the tests when running with GALAXY_VERSION="23.0" FROM_IMAGE="ubuntu:22.04" locally 👍

hexylena commented 5 months ago

More tests passing is a fantastic improvement