bihealth / irods-docker

iRODS Docker image for use with SODAR
MIT License
1 stars 0 forks source link

Ensure correct ownership of irods.log file for rsyslogd #34

Closed mikkonie closed 2 weeks ago

mikkonie commented 2 weeks ago

I've encountered a "permission denied" error on the iRODS syslog file in sodar-docker-compose, see bihealth/sodar-docker-compose#34.

This was fixed by running chown syslog:adm /var/log/irods/irods.log in the running container. I guess I need to add this in the entrypoint or dockerfile to ensure the permissions are set.

This was only happening in the image which had the file mounted in a volume. I guess this happens if there is an existing file in a docker volume or something? Really lacking relevant knowledge here tbh.

mikkonie commented 2 weeks ago

Fixed. If there are better ways to do this, I'm all ears.