-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add logrotate to the Docker image #17609
Conversation
I am not sure why, but including |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this because some logs are getting saved in the container? If so, I think we should stop that from happening. If any logs are getting saved in the container, the logs will be lost whenever the container restarts. Instead, the logging needs to be reconfigured so it goes into the console logs, which can then be inspected with docker log
or managed with log shipping tools.
The |
I still don't think logrotate should be in this container (among other things, we would have to violate the single-responsibility principle and manage more than one process in the container). Some options we could use:
|
Thinking about this a bit more, perhaps we should remove both gxadmin and logrotate, and package them into a utility container for use in maintenance, logging etc. |
All good points. However logrotate would not run as a process in the Galaxy pods, it is just that the CronJobs use the Galaxy image so that is where I stuck it. Having a separate image based on BusyBox or Alpine is something I considered and is likely a better solution if we don't want logrotate in the Galaxy image. I'll close this PR and investigate those options. |
Add logrotate to the Docker image build.
How to test the changes?
(Select all options that apply)
which logrotate
returns/usr/sbin/logrotate
and the/etc/logrotate.d
directory is empty.License