Rotate the logfile in the container distribution. Fixes #6170

This commit is contained in:
Dave Page 2021-02-01 17:35:23 +00:00
parent 960433dd90
commit e10dd6a80f
3 changed files with 10 additions and 1 deletions

View File

@ -163,6 +163,7 @@ RUN apk add --no-cache --virtual \
krb5-server-ldap \
linux-headers && \
apk add \
logrotate \
postfix \
postgresql-client \
postgresql-libs \
@ -180,7 +181,8 @@ RUN apk add --no-cache --virtual \
COPY --from=pg13-builder /usr/local/lib/libpq.so.5.13 /usr/lib/
RUN ln -sf /usr/lib/libpq.so.5.13 /usr/lib/libpq.so.5
# Copy the runner script
# Copy the various scripts
COPY pkg/docker/logrotate.conf /etc/logrotate.d/pgadmin
COPY pkg/docker/run_pgadmin.py /pgadmin4
COPY pkg/docker/gunicorn_config.py /pgadmin4
COPY pkg/docker/entrypoint.sh /entrypoint.sh

View File

@ -11,6 +11,7 @@ New features
| `Issue #5912 <https://redmine.postgresql.org/issues/5912>`_ - Added support for Logical Replication.
| `Issue #5967 <https://redmine.postgresql.org/issues/5967>`_ - Implemented runtime using NWjs to open pgAdmin4 in a standalone window instead of the system tray and web browser.
| `Issue #6170 <https://redmine.postgresql.org/issues/6170>`_ - Rotate the logfile in the container distribution.
Housekeeping
************

View File

@ -0,0 +1,6 @@
/var/log/pgadmin/pgadmin4.log {
daily
copytruncate
rotate 7
compress
}