mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Rotate the logfile in the container distribution. Fixes #6170
This commit is contained in:
parent
960433dd90
commit
e10dd6a80f
@ -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
|
||||
|
@ -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
|
||||
************
|
||||
|
6
pkg/docker/logrotate.conf
Normal file
6
pkg/docker/logrotate.conf
Normal file
@ -0,0 +1,6 @@
|
||||
/var/log/pgadmin/pgadmin4.log {
|
||||
daily
|
||||
copytruncate
|
||||
rotate 7
|
||||
compress
|
||||
}
|
Loading…
Reference in New Issue
Block a user