Include PostgreSQL 13 utilities in the container. Fixes #6162
parent
c71315f8cd
commit
32cdfa2969
20
Dockerfile
20
Dockerfile
|
@ -12,7 +12,7 @@
|
|||
# and clean up the web/ source code
|
||||
#########################################################################
|
||||
|
||||
FROM node:12-alpine3.11 AS app-builder
|
||||
FROM node:14-alpine3.12 AS app-builder
|
||||
|
||||
RUN apk add --no-cache \
|
||||
autoconf \
|
||||
|
@ -64,7 +64,7 @@ RUN npm install && \
|
|||
# Now, create a documentation build container for the Sphinx docs
|
||||
#########################################################################
|
||||
|
||||
FROM python:3.8-alpine3.11 as docs-builder
|
||||
FROM python:3.9-alpine3.12 as docs-builder
|
||||
|
||||
# Install only dependencies absolutely required for documentation building
|
||||
RUN apk add --no-cache \
|
||||
|
@ -101,6 +101,7 @@ FROM postgres:9.6-alpine as pg96-builder
|
|||
FROM postgres:10-alpine as pg10-builder
|
||||
FROM postgres:11-alpine as pg11-builder
|
||||
FROM postgres:12-alpine as pg12-builder
|
||||
FROM postgres:13-alpine as pg13-builder
|
||||
|
||||
FROM alpine:3.11 as tool-builder
|
||||
|
||||
|
@ -130,11 +131,16 @@ COPY --from=pg12-builder /usr/local/bin/pg_dumpall /usr/local/pgsql/pgsql-12/
|
|||
COPY --from=pg12-builder /usr/local/bin/pg_restore /usr/local/pgsql/pgsql-12/
|
||||
COPY --from=pg12-builder /usr/local/bin/psql /usr/local/pgsql/pgsql-12/
|
||||
|
||||
COPY --from=pg13-builder /usr/local/bin/pg_dump /usr/local/pgsql/pgsql-13/
|
||||
COPY --from=pg13-builder /usr/local/bin/pg_dumpall /usr/local/pgsql/pgsql-13/
|
||||
COPY --from=pg13-builder /usr/local/bin/pg_restore /usr/local/pgsql/pgsql-13/
|
||||
COPY --from=pg13-builder /usr/local/bin/psql /usr/local/pgsql/pgsql-13/
|
||||
|
||||
#########################################################################
|
||||
# Assemble everything into the final container.
|
||||
#########################################################################
|
||||
|
||||
FROM python:3.8-alpine3.11
|
||||
FROM python:3.9-alpine3.12
|
||||
|
||||
COPY --from=tool-builder /usr/local/pgsql /usr/local/
|
||||
|
||||
|
@ -175,9 +181,9 @@ RUN apk add --no-cache --virtual \
|
|||
apk del --no-cache build-deps && \
|
||||
echo "pgadmin ALL = NOPASSWD: /usr/sbin/postfix start" > /etc/sudoers.d/postfix
|
||||
|
||||
# We need the v12 libpq, which is only in the 'edge' build of Alpine at present
|
||||
COPY --from=pg12-builder /usr/local/lib/libpq.so.5.12 /usr/lib/
|
||||
RUN ln -sf /usr/lib/libpq.so.5.12 /usr/lib/libpq.so.5
|
||||
# We need the v13 libpq
|
||||
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 pkg/docker/run_pgadmin.py /pgadmin4
|
||||
|
@ -195,7 +201,7 @@ RUN groupadd -g 5050 pgadmin && \
|
|||
chown pgadmin:pgadmin /var/log/pgadmin && \
|
||||
touch /pgadmin4/config_distro.py && \
|
||||
chown pgadmin:pgadmin /pgadmin4/config_distro.py && \
|
||||
setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/python3.8
|
||||
setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/python3.9
|
||||
USER pgadmin
|
||||
|
||||
# Finish up
|
||||
|
|
|
@ -22,6 +22,7 @@ server:
|
|||
* PostgreSQL 10: */usr/local/pgsql-10*
|
||||
* PostgreSQL 11: */usr/local/pgsql-11*
|
||||
* PostgreSQL 12: */usr/local/pgsql-12*
|
||||
* PostgreSQL 13: */usr/local/pgsql-13*
|
||||
|
||||
The most recent version of the utilities is used by default; this may be
|
||||
changed in the :ref:`preferences`.
|
||||
|
|
|
@ -19,6 +19,7 @@ Housekeeping
|
|||
| `Issue #5338 <https://redmine.postgresql.org/issues/5338>`_ - Improve code coverage and API test cases for pgAgent.
|
||||
| `Issue #6052 <https://redmine.postgresql.org/issues/6052>`_ - Added connected pgAdmin user and connection name in the log file.
|
||||
| `Issue #6079 <https://redmine.postgresql.org/issues/6079>`_ - Updated mimetype from 'text/javascript' to 'application/javascript' as 'text/javascript' is obsolete.
|
||||
| `Issue #6162 <https://redmine.postgresql.org/issues/6162>`_ - Include PostgreSQL 13 utilities in the container.
|
||||
|
||||
Bug fixes
|
||||
*********
|
||||
|
|
|
@ -8,7 +8,7 @@ if [ `wc -m /pgadmin4/config_distro.py | awk '{ print $1 }'` = "0" ]; then
|
|||
cat << EOF > /pgadmin4/config_distro.py
|
||||
HELP_PATH = '../../docs'
|
||||
DEFAULT_BINARY_PATHS = {
|
||||
'pg': '/usr/local/pgsql-12'
|
||||
'pg': '/usr/local/pgsql-13'
|
||||
}
|
||||
EOF
|
||||
|
||||
|
|
Loading…
Reference in New Issue