From 75d0be2b69891b557bf35373f92d319e20bc0961 Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 15:46:52 +0300 Subject: [PATCH 01/10] pg14 upgraded --- linux/ecosystem/postgres/14/Dockerfile | 141 ++++++++++++++++++++++++- 1 file changed, 136 insertions(+), 5 deletions(-) diff --git a/linux/ecosystem/postgres/14/Dockerfile b/linux/ecosystem/postgres/14/Dockerfile index b52166961..c80d81ec4 100644 --- a/linux/ecosystem/postgres/14/Dockerfile +++ b/linux/ecosystem/postgres/14/Dockerfile @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye +FROM epicmorg/debian:bookworm LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -16,25 +16,156 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 +#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 #################################################################################################################################### # http://apt.postgresql.org/pub/repos/apt/pool/14/p/postgresql-14/ #################################################################################################################################### ENV PG_MAJOR 14 +ENV PG_STATS 2.1 -RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list +RUN install -d /usr/share/postgresql-common/pgdg && \ + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list RUN apt-get update \ && apt-get install -y postgresql-common \ && sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \ && apt-get install -y \ postgresql-$PG_MAJOR \ + postgresql-server-dev-$PG_MAJOR \ postgresql-contrib-$PG_MAJOR \ + postgresql-postgis \ + postgresql-postgis-scripts \ + postgresql-pljava-common \ + postgresql-pgrouting \ + postgresql-pgrouting-scripts \ + postgresql-comparator \ + postgresql-doc-$PG_MAJOR \ + postgresql-pltcl-$PG_MAJOR \ + postgresql-plpython3-$PG_MAJOR \ + postgresql-plperl-$PG_MAJOR \ + postgresql-$PG_MAJOR-wal2json \ + postgresql-$PG_MAJOR-unit \ + postgresql-$PG_MAJOR-toastinfo \ + postgresql-$PG_MAJOR-tds-fdw \ + postgresql-$PG_MAJOR-tdigest \ + postgresql-$PG_MAJOR-tablelog \ + postgresql-$PG_MAJOR-squeeze \ + postgresql-$PG_MAJOR-snakeoil \ + postgresql-$PG_MAJOR-slony1-2 \ + postgresql-$PG_MAJOR-similarity \ + postgresql-$PG_MAJOR-set-user \ + postgresql-$PG_MAJOR-semver \ + postgresql-$PG_MAJOR-rum \ + postgresql-$PG_MAJOR-roaringbitmap \ + postgresql-$PG_MAJOR-repmgr \ + postgresql-$PG_MAJOR-repack \ + postgresql-$PG_MAJOR-rdkit \ + postgresql-$PG_MAJOR-rational \ + postgresql-$PG_MAJOR-q3c \ + postgresql-$PG_MAJOR-prioritize \ + postgresql-$PG_MAJOR-preprepare \ + postgresql-$PG_MAJOR-prefix \ + postgresql-$PG_MAJOR-powa \ + postgresql-$PG_MAJOR-postgis-3-scripts \ + postgresql-$PG_MAJOR-postgis-3 \ + postgresql-$PG_MAJOR-pointcloud \ + postgresql-$PG_MAJOR-plsh \ + postgresql-$PG_MAJOR-plr \ + postgresql-$PG_MAJOR-plproxy \ + postgresql-$PG_MAJOR-plprofiler \ + postgresql-$PG_MAJOR-plpgsql-check \ + postgresql-$PG_MAJOR-pllua \ + postgresql-$PG_MAJOR-pljava \ + postgresql-$PG_MAJOR-pldebugger \ + postgresql-$PG_MAJOR-pgvector \ + postgresql-$PG_MAJOR-pgtap \ + postgresql-$PG_MAJOR-pgsphere \ + postgresql-$PG_MAJOR-pgrouting-scripts \ + postgresql-$PG_MAJOR-pgrouting-doc \ + postgresql-$PG_MAJOR-pgrouting \ + postgresql-$PG_MAJOR-pgq3 \ + postgresql-$PG_MAJOR-pgq-node \ + postgresql-$PG_MAJOR-pgpool2 \ + postgresql-$PG_MAJOR-pgpcre \ + postgresql-$PG_MAJOR-pgmp \ + postgresql-$PG_MAJOR-pgmemcache \ + postgresql-$PG_MAJOR-pglogical-ticker \ + postgresql-$PG_MAJOR-pglogical \ + postgresql-$PG_MAJOR-pgl-ddl-deploy \ + postgresql-$PG_MAJOR-pgfincore \ + postgresql-$PG_MAJOR-pgfaceting \ + postgresql-$PG_MAJOR-pgextwlist \ + postgresql-$PG_MAJOR-pgauditlogtofile \ + postgresql-$PG_MAJOR-pgaudit \ + postgresql-$PG_MAJOR-pg-wait-sampling \ + postgresql-$PG_MAJOR-pg-track-settings \ + postgresql-$PG_MAJOR-pg-stat-kcache \ + postgresql-$PG_MAJOR-pg-qualstats \ + postgresql-$PG_MAJOR-pg-hint-plan \ + postgresql-$PG_MAJOR-pg-failover-slots \ + postgresql-$PG_MAJOR-pg-fact-loader \ + postgresql-$PG_MAJOR-pg-checksums \ + postgresql-$PG_MAJOR-pg-catcheck \ + postgresql-$PG_MAJOR-periods \ + postgresql-$PG_MAJOR-partman \ + postgresql-$PG_MAJOR-orafce \ + postgresql-$PG_MAJOR-oracle-fdw \ + postgresql-$PG_MAJOR-omnidb \ + postgresql-$PG_MAJOR-numeral \ + postgresql-$PG_MAJOR-mysql-fdw \ + postgresql-$PG_MAJOR-mobilitydb \ + postgresql-$PG_MAJOR-mimeo \ + postgresql-$PG_MAJOR-londiste-sql \ + postgresql-$PG_MAJOR-jsquery \ + postgresql-$PG_MAJOR-ip4r \ + postgresql-$PG_MAJOR-icu-ext \ + postgresql-$PG_MAJOR-hypopg \ + postgresql-$PG_MAJOR-http \ + postgresql-$PG_MAJOR-hll \ + postgresql-$PG_MAJOR-h3 \ + postgresql-$PG_MAJOR-first-last-agg \ + postgresql-$PG_MAJOR-extra-window-functions \ + postgresql-$PG_MAJOR-dirtyread \ + postgresql-$PG_MAJOR-decoderbufs \ + postgresql-$PG_MAJOR-debversion \ + postgresql-$PG_MAJOR-cron \ + postgresql-$PG_MAJOR-credcheck \ + postgresql-$PG_MAJOR-bgw-replstatus \ + postgresql-$PG_MAJOR-auto-failover \ + postgresql-$PG_MAJOR-asn1oid \ + postgresql-$PG_MAJOR-age \ + postgresql-client-8.2 \ + postgresql-client-8.3 \ + postgresql-client-8.4 \ + postgresql-client-9.0 \ + postgresql-client-9.1 \ + postgresql-client-9.2 \ + postgresql-client-9.3 \ + postgresql-client-9.4 \ + postgresql-client-9.5 \ + postgresql-client-9.6 \ + postgresql-client-10 \ + postgresql-client-11 \ + postgresql-client-12 \ + postgresql-client-13 \ + postgresql-client-14 \ + postgresql-client-15 \ + postgresql-client-16 \ && rm -rf /var/lib/apt/lists/* +RUN cd /tmp \ + && wget https://github.com/EnterpriseDB/system_stats/archive/refs/tags/v$PG_STATS.tar.gz \ + && tar -zxvf v$PG_STATS.tar.gz \ + && cd /tmp/system_stats-$PG_STATS \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make USE_PGXS=1 \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make install USE_PGXS=1 \ + && rm -rf /tmp/* + + RUN mkdir /docker-entrypoint-initdb.d RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql From 8222d379192e3f991a8ce08af942ddc650f81145 Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 15:58:50 +0300 Subject: [PATCH 02/10] pg15 upgraded --- linux/ecosystem/postgres/15/Dockerfile | 140 ++++++++++++++++++++++++- 1 file changed, 135 insertions(+), 5 deletions(-) diff --git a/linux/ecosystem/postgres/15/Dockerfile b/linux/ecosystem/postgres/15/Dockerfile index 7b7f8189d..902e9e281 100644 --- a/linux/ecosystem/postgres/15/Dockerfile +++ b/linux/ecosystem/postgres/15/Dockerfile @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye +FROM epicmorg/debian:bookworm LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -16,25 +16,155 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 +#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 #################################################################################################################################### # http://apt.postgresql.org/pub/repos/apt/pool/15/p/postgresql-15/ #################################################################################################################################### ENV PG_MAJOR 15 +ENV PG_STATS 2.1 -RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list +RUN install -d /usr/share/postgresql-common/pgdg && \ + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list RUN apt-get update \ && apt-get install -y postgresql-common \ && sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \ && apt-get install -y \ postgresql-$PG_MAJOR \ + postgresql-server-dev-$PG_MAJOR \ postgresql-contrib-$PG_MAJOR \ + postgresql-postgis \ + postgresql-postgis-scripts \ + postgresql-pljava-common \ + postgresql-pgrouting \ + postgresql-pgrouting-scripts \ + postgresql-comparator \ + postgresql-doc-$PG_MAJOR \ + postgresql-pltcl-$PG_MAJOR \ + postgresql-plpython3-$PG_MAJOR \ + postgresql-plperl-$PG_MAJOR \ + postgresql-$PG_MAJOR-wal2json \ + postgresql-$PG_MAJOR-unit \ + postgresql-$PG_MAJOR-toastinfo \ + postgresql-$PG_MAJOR-tds-fdw \ + postgresql-$PG_MAJOR-tdigest \ + postgresql-$PG_MAJOR-tablelog \ + postgresql-$PG_MAJOR-squeeze \ + postgresql-$PG_MAJOR-snakeoil \ + postgresql-$PG_MAJOR-slony1-2 \ + postgresql-$PG_MAJOR-similarity \ + postgresql-$PG_MAJOR-set-user \ + postgresql-$PG_MAJOR-semver \ + postgresql-$PG_MAJOR-rum \ + postgresql-$PG_MAJOR-roaringbitmap \ + postgresql-$PG_MAJOR-repmgr \ + postgresql-$PG_MAJOR-repack \ + postgresql-$PG_MAJOR-rdkit \ + postgresql-$PG_MAJOR-rational \ + postgresql-$PG_MAJOR-q3c \ + postgresql-$PG_MAJOR-prioritize \ + postgresql-$PG_MAJOR-preprepare \ + postgresql-$PG_MAJOR-prefix \ + postgresql-$PG_MAJOR-powa \ + postgresql-$PG_MAJOR-postgis-3-scripts \ + postgresql-$PG_MAJOR-postgis-3 \ + postgresql-$PG_MAJOR-pointcloud \ + postgresql-$PG_MAJOR-plsh \ + postgresql-$PG_MAJOR-plr \ + postgresql-$PG_MAJOR-plproxy \ + postgresql-$PG_MAJOR-plprofiler \ + postgresql-$PG_MAJOR-plpgsql-check \ + postgresql-$PG_MAJOR-pllua \ + postgresql-$PG_MAJOR-pljava \ + postgresql-$PG_MAJOR-pldebugger \ + postgresql-$PG_MAJOR-pgvector \ + postgresql-$PG_MAJOR-pgtap \ + postgresql-$PG_MAJOR-pgsphere \ + postgresql-$PG_MAJOR-pgrouting-scripts \ + postgresql-$PG_MAJOR-pgrouting-doc \ + postgresql-$PG_MAJOR-pgrouting \ + postgresql-$PG_MAJOR-pgq3 \ + postgresql-$PG_MAJOR-pgq-node \ + postgresql-$PG_MAJOR-pgpool2 \ + postgresql-$PG_MAJOR-pgpcre \ + postgresql-$PG_MAJOR-pgmp \ + postgresql-$PG_MAJOR-pgmemcache \ + postgresql-$PG_MAJOR-pglogical-ticker \ + postgresql-$PG_MAJOR-pglogical \ + postgresql-$PG_MAJOR-pgl-ddl-deploy \ + postgresql-$PG_MAJOR-pgfincore \ + postgresql-$PG_MAJOR-pgfaceting \ + postgresql-$PG_MAJOR-pgextwlist \ + postgresql-$PG_MAJOR-pgauditlogtofile \ + postgresql-$PG_MAJOR-pgaudit \ + postgresql-$PG_MAJOR-pg-wait-sampling \ + postgresql-$PG_MAJOR-pg-track-settings \ + postgresql-$PG_MAJOR-pg-stat-kcache \ + postgresql-$PG_MAJOR-pg-qualstats \ + postgresql-$PG_MAJOR-pg-hint-plan \ + postgresql-$PG_MAJOR-pg-failover-slots \ + postgresql-$PG_MAJOR-pg-fact-loader \ + postgresql-$PG_MAJOR-pg-checksums \ + postgresql-$PG_MAJOR-pg-catcheck \ + postgresql-$PG_MAJOR-periods \ + postgresql-$PG_MAJOR-partman \ + postgresql-$PG_MAJOR-orafce \ + postgresql-$PG_MAJOR-oracle-fdw \ + postgresql-$PG_MAJOR-omnidb \ + postgresql-$PG_MAJOR-numeral \ + postgresql-$PG_MAJOR-mysql-fdw \ + postgresql-$PG_MAJOR-mobilitydb \ + postgresql-$PG_MAJOR-mimeo \ + postgresql-$PG_MAJOR-londiste-sql \ + postgresql-$PG_MAJOR-jsquery \ + postgresql-$PG_MAJOR-ip4r \ + postgresql-$PG_MAJOR-icu-ext \ + postgresql-$PG_MAJOR-hypopg \ + postgresql-$PG_MAJOR-http \ + postgresql-$PG_MAJOR-hll \ + postgresql-$PG_MAJOR-h3 \ + postgresql-$PG_MAJOR-first-last-agg \ + postgresql-$PG_MAJOR-extra-window-functions \ + postgresql-$PG_MAJOR-dirtyread \ + postgresql-$PG_MAJOR-decoderbufs \ + postgresql-$PG_MAJOR-debversion \ + postgresql-$PG_MAJOR-cron \ + postgresql-$PG_MAJOR-credcheck \ + postgresql-$PG_MAJOR-bgw-replstatus \ + postgresql-$PG_MAJOR-auto-failover \ + postgresql-$PG_MAJOR-asn1oid \ + postgresql-$PG_MAJOR-age \ + postgresql-client-8.2 \ + postgresql-client-8.3 \ + postgresql-client-8.4 \ + postgresql-client-9.0 \ + postgresql-client-9.1 \ + postgresql-client-9.2 \ + postgresql-client-9.3 \ + postgresql-client-9.4 \ + postgresql-client-9.5 \ + postgresql-client-9.6 \ + postgresql-client-10 \ + postgresql-client-11 \ + postgresql-client-12 \ + postgresql-client-13 \ + postgresql-client-14 \ + postgresql-client-15 \ + postgresql-client-16 \ && rm -rf /var/lib/apt/lists/* +RUN cd /tmp \ + && wget https://github.com/EnterpriseDB/system_stats/archive/refs/tags/v$PG_STATS.tar.gz \ + && tar -zxvf v$PG_STATS.tar.gz \ + && cd /tmp/system_stats-$PG_STATS \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make USE_PGXS=1 \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make install USE_PGXS=1 \ + && rm -rf /tmp/* + RUN mkdir /docker-entrypoint-initdb.d RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql From 1640bc2eddfd93040049aa096644a1a94e38934e Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 16:05:06 +0300 Subject: [PATCH 03/10] pg16 upgraded --- linux/ecosystem/postgres/16/Dockerfile | 142 +++++++++++++++++++++++-- 1 file changed, 136 insertions(+), 6 deletions(-) diff --git a/linux/ecosystem/postgres/16/Dockerfile b/linux/ecosystem/postgres/16/Dockerfile index 0c86324e9..f29e867d0 100644 --- a/linux/ecosystem/postgres/16/Dockerfile +++ b/linux/ecosystem/postgres/16/Dockerfile @@ -16,27 +16,157 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 +#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 #################################################################################################################################### # http://apt.postgresql.org/pub/repos/apt/pool/16/p/postgresql-16/ #################################################################################################################################### ENV PG_MAJOR 16 -RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list +ENV PG_STATS 2.1 + +RUN install -d /usr/share/postgresql-common/pgdg && \ + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list RUN apt-get update \ && apt-get install -y postgresql-common \ && sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \ -# && apt-cache policy libpq5 && apt-get install -y \ - libpq5=16~~devel-1.pgdg120+~20221112.1758.g97c61f7 \ postgresql-$PG_MAJOR \ + postgresql-server-dev-$PG_MAJOR \ postgresql-contrib-$PG_MAJOR \ + postgresql-postgis \ + postgresql-postgis-scripts \ + postgresql-pljava-common \ + postgresql-pgrouting \ + postgresql-pgrouting-scripts \ + postgresql-comparator \ + postgresql-doc-$PG_MAJOR \ + postgresql-pltcl-$PG_MAJOR \ + postgresql-plpython3-$PG_MAJOR \ + postgresql-plperl-$PG_MAJOR \ + postgresql-$PG_MAJOR-wal2json \ + postgresql-$PG_MAJOR-unit \ + postgresql-$PG_MAJOR-toastinfo \ + postgresql-$PG_MAJOR-tds-fdw \ + postgresql-$PG_MAJOR-tdigest \ + postgresql-$PG_MAJOR-tablelog \ + postgresql-$PG_MAJOR-squeeze \ + postgresql-$PG_MAJOR-snakeoil \ + postgresql-$PG_MAJOR-slony1-2 \ + postgresql-$PG_MAJOR-similarity \ + postgresql-$PG_MAJOR-set-user \ + postgresql-$PG_MAJOR-semver \ + postgresql-$PG_MAJOR-rum \ + postgresql-$PG_MAJOR-roaringbitmap \ + postgresql-$PG_MAJOR-repmgr \ + postgresql-$PG_MAJOR-repack \ + postgresql-$PG_MAJOR-rdkit \ + postgresql-$PG_MAJOR-rational \ + postgresql-$PG_MAJOR-q3c \ + postgresql-$PG_MAJOR-prioritize \ + postgresql-$PG_MAJOR-preprepare \ + postgresql-$PG_MAJOR-prefix \ + postgresql-$PG_MAJOR-powa \ + postgresql-$PG_MAJOR-postgis-3-scripts \ + postgresql-$PG_MAJOR-postgis-3 \ + postgresql-$PG_MAJOR-pointcloud \ + postgresql-$PG_MAJOR-plsh \ + postgresql-$PG_MAJOR-plr \ + postgresql-$PG_MAJOR-plproxy \ + postgresql-$PG_MAJOR-plprofiler \ + postgresql-$PG_MAJOR-plpgsql-check \ + postgresql-$PG_MAJOR-pllua \ + postgresql-$PG_MAJOR-pljava \ + postgresql-$PG_MAJOR-pldebugger \ + postgresql-$PG_MAJOR-pgvector \ + postgresql-$PG_MAJOR-pgtap \ + postgresql-$PG_MAJOR-pgsphere \ + postgresql-$PG_MAJOR-pgrouting-scripts \ + postgresql-$PG_MAJOR-pgrouting-doc \ + postgresql-$PG_MAJOR-pgrouting \ + postgresql-$PG_MAJOR-pgq3 \ + postgresql-$PG_MAJOR-pgq-node \ + postgresql-$PG_MAJOR-pgpool2 \ + postgresql-$PG_MAJOR-pgpcre \ + postgresql-$PG_MAJOR-pgmp \ + postgresql-$PG_MAJOR-pgmemcache \ + postgresql-$PG_MAJOR-pglogical-ticker \ + postgresql-$PG_MAJOR-pglogical \ + postgresql-$PG_MAJOR-pgl-ddl-deploy \ + postgresql-$PG_MAJOR-pgfincore \ + postgresql-$PG_MAJOR-pgfaceting \ + postgresql-$PG_MAJOR-pgextwlist \ + postgresql-$PG_MAJOR-pgauditlogtofile \ + postgresql-$PG_MAJOR-pgaudit \ + postgresql-$PG_MAJOR-pg-wait-sampling \ + postgresql-$PG_MAJOR-pg-track-settings \ + postgresql-$PG_MAJOR-pg-stat-kcache \ + postgresql-$PG_MAJOR-pg-qualstats \ + postgresql-$PG_MAJOR-pg-hint-plan \ + postgresql-$PG_MAJOR-pg-failover-slots \ + postgresql-$PG_MAJOR-pg-fact-loader \ + postgresql-$PG_MAJOR-pg-checksums \ + postgresql-$PG_MAJOR-pg-catcheck \ + postgresql-$PG_MAJOR-periods \ + postgresql-$PG_MAJOR-partman \ + postgresql-$PG_MAJOR-orafce \ + postgresql-$PG_MAJOR-oracle-fdw \ + postgresql-$PG_MAJOR-omnidb \ + postgresql-$PG_MAJOR-numeral \ + postgresql-$PG_MAJOR-mysql-fdw \ + postgresql-$PG_MAJOR-mobilitydb \ + postgresql-$PG_MAJOR-mimeo \ + postgresql-$PG_MAJOR-londiste-sql \ + postgresql-$PG_MAJOR-jsquery \ + postgresql-$PG_MAJOR-ip4r \ + postgresql-$PG_MAJOR-icu-ext \ + postgresql-$PG_MAJOR-hypopg \ + postgresql-$PG_MAJOR-http \ + postgresql-$PG_MAJOR-hll \ + postgresql-$PG_MAJOR-h3 \ + postgresql-$PG_MAJOR-first-last-agg \ + postgresql-$PG_MAJOR-extra-window-functions \ + postgresql-$PG_MAJOR-dirtyread \ + postgresql-$PG_MAJOR-decoderbufs \ + postgresql-$PG_MAJOR-debversion \ + postgresql-$PG_MAJOR-cron \ + postgresql-$PG_MAJOR-credcheck \ + postgresql-$PG_MAJOR-bgw-replstatus \ + postgresql-$PG_MAJOR-auto-failover \ + postgresql-$PG_MAJOR-asn1oid \ + postgresql-$PG_MAJOR-age \ + postgresql-client-8.2 \ + postgresql-client-8.3 \ + postgresql-client-8.4 \ + postgresql-client-9.0 \ + postgresql-client-9.1 \ + postgresql-client-9.2 \ + postgresql-client-9.3 \ + postgresql-client-9.4 \ + postgresql-client-9.5 \ + postgresql-client-9.6 \ + postgresql-client-10 \ + postgresql-client-11 \ + postgresql-client-12 \ + postgresql-client-13 \ + postgresql-client-14 \ + postgresql-client-15 \ + postgresql-client-16 \ && rm -rf /var/lib/apt/lists/* +RUN cd /tmp \ + && wget https://github.com/EnterpriseDB/system_stats/archive/refs/tags/v$PG_STATS.tar.gz \ + && tar -zxvf v$PG_STATS.tar.gz \ + && cd /tmp/system_stats-$PG_STATS \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make USE_PGXS=1 \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make install USE_PGXS=1 \ + && rm -rf /tmp/* + + RUN mkdir /docker-entrypoint-initdb.d RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql From 4ae4ace1306fc82bbac385ff1b346f73469921c5 Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 16:08:12 +0300 Subject: [PATCH 04/10] make - autocommit --- .github/workflows/epicmorg.base.images.postgresql.yml | 8 ++++---- CHANGELOG.md | 2 ++ Makefile | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/epicmorg.base.images.postgresql.yml b/.github/workflows/epicmorg.base.images.postgresql.yml index 4fed3aa18..58ddd5384 100644 --- a/.github/workflows/epicmorg.base.images.postgresql.yml +++ b/.github/workflows/epicmorg.base.images.postgresql.yml @@ -38,7 +38,7 @@ jobs: - name: "Build and Deploy PostgreSQL 9.2 Image:" run: cd linux/ecosystem/postgres/9.2 && pwd && make build && make deploy - + - name: Cleanup run: make docker-clean @@ -56,7 +56,7 @@ jobs: - name: "Build and Deploy PostgreSQL 10 Image:" run: cd linux/ecosystem/postgres/10 && pwd && make build && make deploy - + - name: Cleanup run: make docker-clean @@ -75,8 +75,8 @@ jobs: - name: "Build and Deploy PostgreSQL 15 Image:" run: cd linux/ecosystem/postgres/15 && pwd && make build && make deploy -# - name: "Build and Deploy PostgreSQL 16 Image:" -# run: cd linux/ecosystem/postgres/16 && pwd && make build && make deploy + - name: "Build and Deploy PostgreSQL 16 Image:" + run: cd linux/ecosystem/postgres/16 && pwd && make build && make deploy ################################################################################## diff --git a/CHANGELOG.md b/CHANGELOG.md index 9564e611a..903913f9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog ## 2024 +* `mar-apr` + * impoverd `postgres 12-16` images. * `feb` * added `astralinux` `1.7` `se` base images - `slim`, `main` and `develop`. * updated images: fixes of sources.list, java install logic, updated `python 3.12` iamges diff --git a/Makefile b/Makefile index 9ab43d5c1..07e7a7a18 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = "2024.02.06" +VERSION = "2024.04.21" AUTHOR = "EpicMorg" MODIFIED = "STAM" DOCKER_SCAN_SUGGEST = false @@ -652,7 +652,7 @@ ecosystem-postgres-images: cd `pwd`/linux/ecosystem/postgres/13 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/postgres/14 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/postgres/15 && pwd && make build && make deploy -# cd `pwd`/linux/ecosystem/postgres/16 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/postgres/16 && pwd && make build && make deploy ecosystem-teamcity-agent-images: cd `pwd`/linux/ecosystem/teamcity/agent/latest/jdk11 && pwd && make build && make deploy From a2bc3ecb3010164d658a90acf2271595979441f9 Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 16:10:02 +0300 Subject: [PATCH 05/10] upgrade pgslq 16 --- linux/ecosystem/postgres/latest/Dockerfile | 142 ++++++++++++++++++++- 1 file changed, 136 insertions(+), 6 deletions(-) diff --git a/linux/ecosystem/postgres/latest/Dockerfile b/linux/ecosystem/postgres/latest/Dockerfile index 7b7f8189d..b6685f930 100644 --- a/linux/ecosystem/postgres/latest/Dockerfile +++ b/linux/ecosystem/postgres/latest/Dockerfile @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye +FROM epicmorg/debian:bookworm LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -16,25 +16,155 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 +#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 #################################################################################################################################### # http://apt.postgresql.org/pub/repos/apt/pool/15/p/postgresql-15/ #################################################################################################################################### -ENV PG_MAJOR 15 +ENV PG_MAJOR 16 +ENV PG_STATS 2.1 -RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list +RUN install -d /usr/share/postgresql-common/pgdg && \ + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list RUN apt-get update \ && apt-get install -y postgresql-common \ && sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \ && apt-get install -y \ postgresql-$PG_MAJOR \ + postgresql-server-dev-$PG_MAJOR \ postgresql-contrib-$PG_MAJOR \ + postgresql-postgis \ + postgresql-postgis-scripts \ + postgresql-pljava-common \ + postgresql-pgrouting \ + postgresql-pgrouting-scripts \ + postgresql-comparator \ + postgresql-doc-$PG_MAJOR \ + postgresql-pltcl-$PG_MAJOR \ + postgresql-plpython3-$PG_MAJOR \ + postgresql-plperl-$PG_MAJOR \ + postgresql-$PG_MAJOR-wal2json \ + postgresql-$PG_MAJOR-unit \ + postgresql-$PG_MAJOR-toastinfo \ + postgresql-$PG_MAJOR-tds-fdw \ + postgresql-$PG_MAJOR-tdigest \ + postgresql-$PG_MAJOR-tablelog \ + postgresql-$PG_MAJOR-squeeze \ + postgresql-$PG_MAJOR-snakeoil \ + postgresql-$PG_MAJOR-slony1-2 \ + postgresql-$PG_MAJOR-similarity \ + postgresql-$PG_MAJOR-set-user \ + postgresql-$PG_MAJOR-semver \ + postgresql-$PG_MAJOR-rum \ + postgresql-$PG_MAJOR-roaringbitmap \ + postgresql-$PG_MAJOR-repmgr \ + postgresql-$PG_MAJOR-repack \ + postgresql-$PG_MAJOR-rdkit \ + postgresql-$PG_MAJOR-rational \ + postgresql-$PG_MAJOR-q3c \ + postgresql-$PG_MAJOR-prioritize \ + postgresql-$PG_MAJOR-preprepare \ + postgresql-$PG_MAJOR-prefix \ + postgresql-$PG_MAJOR-powa \ + postgresql-$PG_MAJOR-postgis-3-scripts \ + postgresql-$PG_MAJOR-postgis-3 \ + postgresql-$PG_MAJOR-pointcloud \ + postgresql-$PG_MAJOR-plsh \ + postgresql-$PG_MAJOR-plr \ + postgresql-$PG_MAJOR-plproxy \ + postgresql-$PG_MAJOR-plprofiler \ + postgresql-$PG_MAJOR-plpgsql-check \ + postgresql-$PG_MAJOR-pllua \ + postgresql-$PG_MAJOR-pljava \ + postgresql-$PG_MAJOR-pldebugger \ + postgresql-$PG_MAJOR-pgvector \ + postgresql-$PG_MAJOR-pgtap \ + postgresql-$PG_MAJOR-pgsphere \ + postgresql-$PG_MAJOR-pgrouting-scripts \ + postgresql-$PG_MAJOR-pgrouting-doc \ + postgresql-$PG_MAJOR-pgrouting \ + postgresql-$PG_MAJOR-pgq3 \ + postgresql-$PG_MAJOR-pgq-node \ + postgresql-$PG_MAJOR-pgpool2 \ + postgresql-$PG_MAJOR-pgpcre \ + postgresql-$PG_MAJOR-pgmp \ + postgresql-$PG_MAJOR-pgmemcache \ + postgresql-$PG_MAJOR-pglogical-ticker \ + postgresql-$PG_MAJOR-pglogical \ + postgresql-$PG_MAJOR-pgl-ddl-deploy \ + postgresql-$PG_MAJOR-pgfincore \ + postgresql-$PG_MAJOR-pgfaceting \ + postgresql-$PG_MAJOR-pgextwlist \ + postgresql-$PG_MAJOR-pgauditlogtofile \ + postgresql-$PG_MAJOR-pgaudit \ + postgresql-$PG_MAJOR-pg-wait-sampling \ + postgresql-$PG_MAJOR-pg-track-settings \ + postgresql-$PG_MAJOR-pg-stat-kcache \ + postgresql-$PG_MAJOR-pg-qualstats \ + postgresql-$PG_MAJOR-pg-hint-plan \ + postgresql-$PG_MAJOR-pg-failover-slots \ + postgresql-$PG_MAJOR-pg-fact-loader \ + postgresql-$PG_MAJOR-pg-checksums \ + postgresql-$PG_MAJOR-pg-catcheck \ + postgresql-$PG_MAJOR-periods \ + postgresql-$PG_MAJOR-partman \ + postgresql-$PG_MAJOR-orafce \ + postgresql-$PG_MAJOR-oracle-fdw \ + postgresql-$PG_MAJOR-omnidb \ + postgresql-$PG_MAJOR-numeral \ + postgresql-$PG_MAJOR-mysql-fdw \ + postgresql-$PG_MAJOR-mobilitydb \ + postgresql-$PG_MAJOR-mimeo \ + postgresql-$PG_MAJOR-londiste-sql \ + postgresql-$PG_MAJOR-jsquery \ + postgresql-$PG_MAJOR-ip4r \ + postgresql-$PG_MAJOR-icu-ext \ + postgresql-$PG_MAJOR-hypopg \ + postgresql-$PG_MAJOR-http \ + postgresql-$PG_MAJOR-hll \ + postgresql-$PG_MAJOR-h3 \ + postgresql-$PG_MAJOR-first-last-agg \ + postgresql-$PG_MAJOR-extra-window-functions \ + postgresql-$PG_MAJOR-dirtyread \ + postgresql-$PG_MAJOR-decoderbufs \ + postgresql-$PG_MAJOR-debversion \ + postgresql-$PG_MAJOR-cron \ + postgresql-$PG_MAJOR-credcheck \ + postgresql-$PG_MAJOR-bgw-replstatus \ + postgresql-$PG_MAJOR-auto-failover \ + postgresql-$PG_MAJOR-asn1oid \ + postgresql-$PG_MAJOR-age \ + postgresql-client-8.2 \ + postgresql-client-8.3 \ + postgresql-client-8.4 \ + postgresql-client-9.0 \ + postgresql-client-9.1 \ + postgresql-client-9.2 \ + postgresql-client-9.3 \ + postgresql-client-9.4 \ + postgresql-client-9.5 \ + postgresql-client-9.6 \ + postgresql-client-10 \ + postgresql-client-11 \ + postgresql-client-12 \ + postgresql-client-13 \ + postgresql-client-14 \ + postgresql-client-15 \ + postgresql-client-16 \ && rm -rf /var/lib/apt/lists/* +RUN cd /tmp \ + && wget https://github.com/EnterpriseDB/system_stats/archive/refs/tags/v$PG_STATS.tar.gz \ + && tar -zxvf v$PG_STATS.tar.gz \ + && cd /tmp/system_stats-$PG_STATS \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make USE_PGXS=1 \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make install USE_PGXS=1 \ + && rm -rf /tmp/* + RUN mkdir /docker-entrypoint-initdb.d RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql From 4c2953dda84324629f8a666824f8092e6c05ae26 Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 16:11:36 +0300 Subject: [PATCH 06/10] upgraded pgsql 13 --- linux/ecosystem/postgres/13/Dockerfile | 140 ++++++++++++++++++++++++- 1 file changed, 135 insertions(+), 5 deletions(-) diff --git a/linux/ecosystem/postgres/13/Dockerfile b/linux/ecosystem/postgres/13/Dockerfile index 3667f9fa1..6bee52c6b 100644 --- a/linux/ecosystem/postgres/13/Dockerfile +++ b/linux/ecosystem/postgres/13/Dockerfile @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye +FROM epicmorg/debian:bookworm LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -16,25 +16,155 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 +#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 #################################################################################################################################### # http://apt.postgresql.org/pub/repos/apt/pool/13/p/postgresql-13/ #################################################################################################################################### ENV PG_MAJOR 13 +ENV PG_STATS 2.1 -RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list +RUN install -d /usr/share/postgresql-common/pgdg && \ + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list RUN apt-get update \ && apt-get install -y postgresql-common \ && sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \ && apt-get install -y \ postgresql-$PG_MAJOR \ + postgresql-server-dev-$PG_MAJOR \ postgresql-contrib-$PG_MAJOR \ + postgresql-postgis \ + postgresql-postgis-scripts \ + postgresql-pljava-common \ + postgresql-pgrouting \ + postgresql-pgrouting-scripts \ + postgresql-comparator \ + postgresql-doc-$PG_MAJOR \ + postgresql-pltcl-$PG_MAJOR \ + postgresql-plpython3-$PG_MAJOR \ + postgresql-plperl-$PG_MAJOR \ + postgresql-$PG_MAJOR-wal2json \ + postgresql-$PG_MAJOR-unit \ + postgresql-$PG_MAJOR-toastinfo \ + postgresql-$PG_MAJOR-tds-fdw \ + postgresql-$PG_MAJOR-tdigest \ + postgresql-$PG_MAJOR-tablelog \ + postgresql-$PG_MAJOR-squeeze \ + postgresql-$PG_MAJOR-snakeoil \ + postgresql-$PG_MAJOR-slony1-2 \ + postgresql-$PG_MAJOR-similarity \ + postgresql-$PG_MAJOR-set-user \ + postgresql-$PG_MAJOR-semver \ + postgresql-$PG_MAJOR-rum \ + postgresql-$PG_MAJOR-roaringbitmap \ + postgresql-$PG_MAJOR-repmgr \ + postgresql-$PG_MAJOR-repack \ + postgresql-$PG_MAJOR-rdkit \ + postgresql-$PG_MAJOR-rational \ + postgresql-$PG_MAJOR-q3c \ + postgresql-$PG_MAJOR-prioritize \ + postgresql-$PG_MAJOR-preprepare \ + postgresql-$PG_MAJOR-prefix \ + postgresql-$PG_MAJOR-powa \ + postgresql-$PG_MAJOR-postgis-3-scripts \ + postgresql-$PG_MAJOR-postgis-3 \ + postgresql-$PG_MAJOR-pointcloud \ + postgresql-$PG_MAJOR-plsh \ + postgresql-$PG_MAJOR-plr \ + postgresql-$PG_MAJOR-plproxy \ + postgresql-$PG_MAJOR-plprofiler \ + postgresql-$PG_MAJOR-plpgsql-check \ + postgresql-$PG_MAJOR-pllua \ + postgresql-$PG_MAJOR-pljava \ + postgresql-$PG_MAJOR-pldebugger \ + postgresql-$PG_MAJOR-pgvector \ + postgresql-$PG_MAJOR-pgtap \ + postgresql-$PG_MAJOR-pgsphere \ + postgresql-$PG_MAJOR-pgrouting-scripts \ + postgresql-$PG_MAJOR-pgrouting-doc \ + postgresql-$PG_MAJOR-pgrouting \ + postgresql-$PG_MAJOR-pgq3 \ + postgresql-$PG_MAJOR-pgq-node \ + postgresql-$PG_MAJOR-pgpool2 \ + postgresql-$PG_MAJOR-pgpcre \ + postgresql-$PG_MAJOR-pgmp \ + postgresql-$PG_MAJOR-pgmemcache \ + postgresql-$PG_MAJOR-pglogical-ticker \ + postgresql-$PG_MAJOR-pglogical \ + postgresql-$PG_MAJOR-pgl-ddl-deploy \ + postgresql-$PG_MAJOR-pgfincore \ + postgresql-$PG_MAJOR-pgfaceting \ + postgresql-$PG_MAJOR-pgextwlist \ + postgresql-$PG_MAJOR-pgauditlogtofile \ + postgresql-$PG_MAJOR-pgaudit \ + postgresql-$PG_MAJOR-pg-wait-sampling \ + postgresql-$PG_MAJOR-pg-track-settings \ + postgresql-$PG_MAJOR-pg-stat-kcache \ + postgresql-$PG_MAJOR-pg-qualstats \ + postgresql-$PG_MAJOR-pg-hint-plan \ + postgresql-$PG_MAJOR-pg-failover-slots \ + postgresql-$PG_MAJOR-pg-fact-loader \ + postgresql-$PG_MAJOR-pg-checksums \ + postgresql-$PG_MAJOR-pg-catcheck \ + postgresql-$PG_MAJOR-periods \ + postgresql-$PG_MAJOR-partman \ + postgresql-$PG_MAJOR-orafce \ + postgresql-$PG_MAJOR-oracle-fdw \ + postgresql-$PG_MAJOR-omnidb \ + postgresql-$PG_MAJOR-numeral \ + postgresql-$PG_MAJOR-mysql-fdw \ + postgresql-$PG_MAJOR-mobilitydb \ + postgresql-$PG_MAJOR-mimeo \ + postgresql-$PG_MAJOR-londiste-sql \ + postgresql-$PG_MAJOR-jsquery \ + postgresql-$PG_MAJOR-ip4r \ + postgresql-$PG_MAJOR-icu-ext \ + postgresql-$PG_MAJOR-hypopg \ + postgresql-$PG_MAJOR-http \ + postgresql-$PG_MAJOR-hll \ + postgresql-$PG_MAJOR-h3 \ + postgresql-$PG_MAJOR-first-last-agg \ + postgresql-$PG_MAJOR-extra-window-functions \ + postgresql-$PG_MAJOR-dirtyread \ + postgresql-$PG_MAJOR-decoderbufs \ + postgresql-$PG_MAJOR-debversion \ + postgresql-$PG_MAJOR-cron \ + postgresql-$PG_MAJOR-credcheck \ + postgresql-$PG_MAJOR-bgw-replstatus \ + postgresql-$PG_MAJOR-auto-failover \ + postgresql-$PG_MAJOR-asn1oid \ + postgresql-$PG_MAJOR-age \ + postgresql-client-8.2 \ + postgresql-client-8.3 \ + postgresql-client-8.4 \ + postgresql-client-9.0 \ + postgresql-client-9.1 \ + postgresql-client-9.2 \ + postgresql-client-9.3 \ + postgresql-client-9.4 \ + postgresql-client-9.5 \ + postgresql-client-9.6 \ + postgresql-client-10 \ + postgresql-client-11 \ + postgresql-client-12 \ + postgresql-client-13 \ + postgresql-client-14 \ + postgresql-client-15 \ + postgresql-client-16 \ && rm -rf /var/lib/apt/lists/* +RUN cd /tmp \ + && wget https://github.com/EnterpriseDB/system_stats/archive/refs/tags/v$PG_STATS.tar.gz \ + && tar -zxvf v$PG_STATS.tar.gz \ + && cd /tmp/system_stats-$PG_STATS \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make USE_PGXS=1 \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make install USE_PGXS=1 \ + && rm -rf /tmp/* + RUN mkdir /docker-entrypoint-initdb.d RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql From 7de866da26eecb4e5b59486b191de3cad96a3aa4 Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 16:17:16 +0300 Subject: [PATCH 07/10] upgraded pgsql 13 --- linux/ecosystem/postgres/13/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/ecosystem/postgres/13/Dockerfile b/linux/ecosystem/postgres/13/Dockerfile index 6bee52c6b..e69910b99 100644 --- a/linux/ecosystem/postgres/13/Dockerfile +++ b/linux/ecosystem/postgres/13/Dockerfile @@ -97,7 +97,7 @@ RUN apt-get update \ postgresql-$PG_MAJOR-pglogical \ postgresql-$PG_MAJOR-pgl-ddl-deploy \ postgresql-$PG_MAJOR-pgfincore \ - postgresql-$PG_MAJOR-pgfaceting \ +# postgresql-$PG_MAJOR-pgfaceting \ postgresql-$PG_MAJOR-pgextwlist \ postgresql-$PG_MAJOR-pgauditlogtofile \ postgresql-$PG_MAJOR-pgaudit \ From f196bf0dc0cdc0cd9d64b36d47b98582bbf0bd1d Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 16:23:42 +0300 Subject: [PATCH 08/10] upgraded pgsql 12 --- linux/ecosystem/postgres/12/Dockerfile | 138 ++++++++++++++++++++++++- 1 file changed, 134 insertions(+), 4 deletions(-) diff --git a/linux/ecosystem/postgres/12/Dockerfile b/linux/ecosystem/postgres/12/Dockerfile index 52fe8db0b..ee2d3a668 100644 --- a/linux/ecosystem/postgres/12/Dockerfile +++ b/linux/ecosystem/postgres/12/Dockerfile @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye +FROM epicmorg/debian:bookworm LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -22,19 +22,149 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F # http://apt.postgresql.org/pub/repos/apt/pool/12/p/postgresql-12/ #################################################################################################################################### ENV PG_MAJOR 12 +ENV PG_STATS 2.1 -RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list +RUN install -d /usr/share/postgresql-common/pgdg && \ + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list RUN apt-get update \ && apt-get install -y postgresql-common \ && sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \ && apt-get install -y \ postgresql-$PG_MAJOR \ + postgresql-server-dev-$PG_MAJOR \ postgresql-contrib-$PG_MAJOR \ + postgresql-postgis \ + postgresql-postgis-scripts \ + postgresql-pljava-common \ + postgresql-pgrouting \ + postgresql-pgrouting-scripts \ + postgresql-comparator \ + postgresql-doc-$PG_MAJOR \ + postgresql-pltcl-$PG_MAJOR \ + postgresql-plpython3-$PG_MAJOR \ + postgresql-plperl-$PG_MAJOR \ + postgresql-$PG_MAJOR-wal2json \ + postgresql-$PG_MAJOR-unit \ + postgresql-$PG_MAJOR-toastinfo \ + postgresql-$PG_MAJOR-tds-fdw \ + postgresql-$PG_MAJOR-tdigest \ + postgresql-$PG_MAJOR-tablelog \ + postgresql-$PG_MAJOR-squeeze \ + postgresql-$PG_MAJOR-snakeoil \ + postgresql-$PG_MAJOR-slony1-2 \ + postgresql-$PG_MAJOR-similarity \ + postgresql-$PG_MAJOR-set-user \ + postgresql-$PG_MAJOR-semver \ + postgresql-$PG_MAJOR-rum \ + postgresql-$PG_MAJOR-roaringbitmap \ + postgresql-$PG_MAJOR-repmgr \ + postgresql-$PG_MAJOR-repack \ + postgresql-$PG_MAJOR-rdkit \ + postgresql-$PG_MAJOR-rational \ + postgresql-$PG_MAJOR-q3c \ + postgresql-$PG_MAJOR-prioritize \ + postgresql-$PG_MAJOR-preprepare \ + postgresql-$PG_MAJOR-prefix \ + postgresql-$PG_MAJOR-powa \ + postgresql-$PG_MAJOR-postgis-3-scripts \ + postgresql-$PG_MAJOR-postgis-3 \ + postgresql-$PG_MAJOR-pointcloud \ + postgresql-$PG_MAJOR-plsh \ + postgresql-$PG_MAJOR-plr \ + postgresql-$PG_MAJOR-plproxy \ + postgresql-$PG_MAJOR-plprofiler \ + postgresql-$PG_MAJOR-plpgsql-check \ + postgresql-$PG_MAJOR-pllua \ + postgresql-$PG_MAJOR-pljava \ + postgresql-$PG_MAJOR-pldebugger \ + postgresql-$PG_MAJOR-pgvector \ + postgresql-$PG_MAJOR-pgtap \ + postgresql-$PG_MAJOR-pgsphere \ + postgresql-$PG_MAJOR-pgrouting-scripts \ + postgresql-$PG_MAJOR-pgrouting-doc \ + postgresql-$PG_MAJOR-pgrouting \ + postgresql-$PG_MAJOR-pgq3 \ + postgresql-$PG_MAJOR-pgq-node \ + postgresql-$PG_MAJOR-pgpool2 \ + postgresql-$PG_MAJOR-pgpcre \ + postgresql-$PG_MAJOR-pgmp \ + postgresql-$PG_MAJOR-pgmemcache \ + postgresql-$PG_MAJOR-pglogical-ticker \ + postgresql-$PG_MAJOR-pglogical \ + postgresql-$PG_MAJOR-pgl-ddl-deploy \ + postgresql-$PG_MAJOR-pgfincore \ +# postgresql-$PG_MAJOR-pgfaceting \ + postgresql-$PG_MAJOR-pgextwlist \ + postgresql-$PG_MAJOR-pgauditlogtofile \ + postgresql-$PG_MAJOR-pgaudit \ + postgresql-$PG_MAJOR-pg-wait-sampling \ + postgresql-$PG_MAJOR-pg-track-settings \ + postgresql-$PG_MAJOR-pg-stat-kcache \ + postgresql-$PG_MAJOR-pg-qualstats \ + postgresql-$PG_MAJOR-pg-hint-plan \ + postgresql-$PG_MAJOR-pg-failover-slots \ + postgresql-$PG_MAJOR-pg-fact-loader \ + postgresql-$PG_MAJOR-pg-checksums \ + postgresql-$PG_MAJOR-pg-catcheck \ + postgresql-$PG_MAJOR-periods \ + postgresql-$PG_MAJOR-partman \ + postgresql-$PG_MAJOR-orafce \ + postgresql-$PG_MAJOR-oracle-fdw \ + postgresql-$PG_MAJOR-omnidb \ + postgresql-$PG_MAJOR-numeral \ + postgresql-$PG_MAJOR-mysql-fdw \ + postgresql-$PG_MAJOR-mobilitydb \ + postgresql-$PG_MAJOR-mimeo \ + postgresql-$PG_MAJOR-londiste-sql \ + postgresql-$PG_MAJOR-jsquery \ + postgresql-$PG_MAJOR-ip4r \ + postgresql-$PG_MAJOR-icu-ext \ + postgresql-$PG_MAJOR-hypopg \ + postgresql-$PG_MAJOR-http \ + postgresql-$PG_MAJOR-hll \ + postgresql-$PG_MAJOR-h3 \ + postgresql-$PG_MAJOR-first-last-agg \ + postgresql-$PG_MAJOR-extra-window-functions \ + postgresql-$PG_MAJOR-dirtyread \ + postgresql-$PG_MAJOR-decoderbufs \ + postgresql-$PG_MAJOR-debversion \ + postgresql-$PG_MAJOR-cron \ + postgresql-$PG_MAJOR-credcheck \ + postgresql-$PG_MAJOR-bgw-replstatus \ + postgresql-$PG_MAJOR-auto-failover \ + postgresql-$PG_MAJOR-asn1oid \ + postgresql-$PG_MAJOR-age \ + postgresql-client-8.2 \ + postgresql-client-8.3 \ + postgresql-client-8.4 \ + postgresql-client-9.0 \ + postgresql-client-9.1 \ + postgresql-client-9.2 \ + postgresql-client-9.3 \ + postgresql-client-9.4 \ + postgresql-client-9.5 \ + postgresql-client-9.6 \ + postgresql-client-10 \ + postgresql-client-11 \ + postgresql-client-12 \ + postgresql-client-13 \ + postgresql-client-14 \ + postgresql-client-15 \ + postgresql-client-16 \ && rm -rf /var/lib/apt/lists/* +RUN cd /tmp \ + && wget https://github.com/EnterpriseDB/system_stats/archive/refs/tags/v$PG_STATS.tar.gz \ + && tar -zxvf v$PG_STATS.tar.gz \ + && cd /tmp/system_stats-$PG_STATS \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make USE_PGXS=1 \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make install USE_PGXS=1 \ + && rm -rf /tmp/* + RUN mkdir /docker-entrypoint-initdb.d RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql From 9eeaf6e39a1faef4ee00ab6e33a756f24288883e Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 16:31:07 +0300 Subject: [PATCH 09/10] upgraded pgsql 11 --- linux/ecosystem/postgres/11/Dockerfile | 138 ++++++++++++++++++++++++- 1 file changed, 134 insertions(+), 4 deletions(-) diff --git a/linux/ecosystem/postgres/11/Dockerfile b/linux/ecosystem/postgres/11/Dockerfile index 0b77d3730..510ae5428 100644 --- a/linux/ecosystem/postgres/11/Dockerfile +++ b/linux/ecosystem/postgres/11/Dockerfile @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye +FROM epicmorg/debian:bookworm LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -22,19 +22,149 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F # http://apt.postgresql.org/pub/repos/apt/pool/11/p/postgresql-11/ #################################################################################################################################### ENV PG_MAJOR 11 +ENV PG_STATS 2.1 -RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list +RUN install -d /usr/share/postgresql-common/pgdg && \ + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list RUN apt-get update \ && apt-get install -y postgresql-common \ && sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \ && apt-get install -y \ postgresql-$PG_MAJOR \ + postgresql-server-dev-$PG_MAJOR \ postgresql-contrib-$PG_MAJOR \ + postgresql-postgis \ + postgresql-postgis-scripts \ + postgresql-pljava-common \ + postgresql-pgrouting \ + postgresql-pgrouting-scripts \ + postgresql-comparator \ + postgresql-doc-$PG_MAJOR \ + postgresql-pltcl-$PG_MAJOR \ + postgresql-plpython3-$PG_MAJOR \ + postgresql-plperl-$PG_MAJOR \ + postgresql-$PG_MAJOR-wal2json \ + postgresql-$PG_MAJOR-unit \ + postgresql-$PG_MAJOR-toastinfo \ + postgresql-$PG_MAJOR-tds-fdw \ + postgresql-$PG_MAJOR-tdigest \ + postgresql-$PG_MAJOR-tablelog \ + postgresql-$PG_MAJOR-squeeze \ + postgresql-$PG_MAJOR-snakeoil \ + postgresql-$PG_MAJOR-slony1-2 \ + postgresql-$PG_MAJOR-similarity \ + postgresql-$PG_MAJOR-set-user \ + postgresql-$PG_MAJOR-semver \ + postgresql-$PG_MAJOR-rum \ + postgresql-$PG_MAJOR-roaringbitmap \ + postgresql-$PG_MAJOR-repmgr \ + postgresql-$PG_MAJOR-repack \ + postgresql-$PG_MAJOR-rdkit \ + postgresql-$PG_MAJOR-rational \ + postgresql-$PG_MAJOR-q3c \ + postgresql-$PG_MAJOR-prioritize \ + postgresql-$PG_MAJOR-preprepare \ + postgresql-$PG_MAJOR-prefix \ + postgresql-$PG_MAJOR-powa \ + postgresql-$PG_MAJOR-postgis-3-scripts \ + postgresql-$PG_MAJOR-postgis-3 \ + postgresql-$PG_MAJOR-pointcloud \ + postgresql-$PG_MAJOR-plsh \ + postgresql-$PG_MAJOR-plr \ + postgresql-$PG_MAJOR-plproxy \ + postgresql-$PG_MAJOR-plprofiler \ + postgresql-$PG_MAJOR-plpgsql-check \ + postgresql-$PG_MAJOR-pllua \ + postgresql-$PG_MAJOR-pljava \ + postgresql-$PG_MAJOR-pldebugger \ + postgresql-$PG_MAJOR-pgvector \ + postgresql-$PG_MAJOR-pgtap \ + postgresql-$PG_MAJOR-pgsphere \ + postgresql-$PG_MAJOR-pgrouting-scripts \ + postgresql-$PG_MAJOR-pgrouting-doc \ + postgresql-$PG_MAJOR-pgrouting \ + postgresql-$PG_MAJOR-pgq3 \ + postgresql-$PG_MAJOR-pgq-node \ + postgresql-$PG_MAJOR-pgpool2 \ + postgresql-$PG_MAJOR-pgpcre \ + postgresql-$PG_MAJOR-pgmp \ + postgresql-$PG_MAJOR-pgmemcache \ + postgresql-$PG_MAJOR-pglogical-ticker \ + postgresql-$PG_MAJOR-pglogical \ + postgresql-$PG_MAJOR-pgl-ddl-deploy \ + postgresql-$PG_MAJOR-pgfincore \ +# postgresql-$PG_MAJOR-pgfaceting \ + postgresql-$PG_MAJOR-pgextwlist \ + postgresql-$PG_MAJOR-pgauditlogtofile \ + postgresql-$PG_MAJOR-pgaudit \ + postgresql-$PG_MAJOR-pg-wait-sampling \ + postgresql-$PG_MAJOR-pg-track-settings \ + postgresql-$PG_MAJOR-pg-stat-kcache \ + postgresql-$PG_MAJOR-pg-qualstats \ +# postgresql-$PG_MAJOR-pg-hint-plan \ + postgresql-$PG_MAJOR-pg-failover-slots \ + postgresql-$PG_MAJOR-pg-fact-loader \ + postgresql-$PG_MAJOR-pg-checksums \ + postgresql-$PG_MAJOR-pg-catcheck \ + postgresql-$PG_MAJOR-periods \ + postgresql-$PG_MAJOR-partman \ + postgresql-$PG_MAJOR-orafce \ + postgresql-$PG_MAJOR-oracle-fdw \ + postgresql-$PG_MAJOR-omnidb \ + postgresql-$PG_MAJOR-numeral \ + postgresql-$PG_MAJOR-mysql-fdw \ +# postgresql-$PG_MAJOR-mobilitydb \ + postgresql-$PG_MAJOR-mimeo \ + postgresql-$PG_MAJOR-londiste-sql \ + postgresql-$PG_MAJOR-jsquery \ + postgresql-$PG_MAJOR-ip4r \ + postgresql-$PG_MAJOR-icu-ext \ + postgresql-$PG_MAJOR-hypopg \ + postgresql-$PG_MAJOR-http \ + postgresql-$PG_MAJOR-hll \ +# postgresql-$PG_MAJOR-h3 \ + postgresql-$PG_MAJOR-first-last-agg \ + postgresql-$PG_MAJOR-extra-window-functions \ + postgresql-$PG_MAJOR-dirtyread \ + postgresql-$PG_MAJOR-decoderbufs \ + postgresql-$PG_MAJOR-debversion \ + postgresql-$PG_MAJOR-cron \ +# postgresql-$PG_MAJOR-credcheck \ + postgresql-$PG_MAJOR-bgw-replstatus \ + postgresql-$PG_MAJOR-auto-failover \ + postgresql-$PG_MAJOR-asn1oid \ +# postgresql-$PG_MAJOR-age \ + postgresql-client-8.2 \ + postgresql-client-8.3 \ + postgresql-client-8.4 \ + postgresql-client-9.0 \ + postgresql-client-9.1 \ + postgresql-client-9.2 \ + postgresql-client-9.3 \ + postgresql-client-9.4 \ + postgresql-client-9.5 \ + postgresql-client-9.6 \ + postgresql-client-10 \ + postgresql-client-11 \ + postgresql-client-12 \ + postgresql-client-13 \ + postgresql-client-14 \ + postgresql-client-15 \ + postgresql-client-16 \ && rm -rf /var/lib/apt/lists/* +RUN cd /tmp \ + && wget https://github.com/EnterpriseDB/system_stats/archive/refs/tags/v$PG_STATS.tar.gz \ + && tar -zxvf v$PG_STATS.tar.gz \ + && cd /tmp/system_stats-$PG_STATS \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make USE_PGXS=1 \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make install USE_PGXS=1 \ + && rm -rf /tmp/* + RUN mkdir /docker-entrypoint-initdb.d RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql From 6e66ea03970a23f47b6ce8dabd8ec10a4aa84834 Mon Sep 17 00:00:00 2001 From: STAM Date: Sun, 21 Apr 2024 16:41:05 +0300 Subject: [PATCH 10/10] upgraded pgsql 10 --- CHANGELOG.md | 2 +- linux/ecosystem/postgres/10/Dockerfile | 140 ++++++++++++++++++++++++- linux/ecosystem/postgres/11/Dockerfile | 2 +- linux/ecosystem/postgres/12/Dockerfile | 2 +- 4 files changed, 138 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 903913f9a..d04a4f527 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ## 2024 * `mar-apr` - * impoverd `postgres 12-16` images. + * impoverd `postgres 10-16` images. * `feb` * added `astralinux` `1.7` `se` base images - `slim`, `main` and `develop`. * updated images: fixes of sources.list, java install logic, updated `python 3.12` iamges diff --git a/linux/ecosystem/postgres/10/Dockerfile b/linux/ecosystem/postgres/10/Dockerfile index 6eae65b1b..73a95492e 100644 --- a/linux/ecosystem/postgres/10/Dockerfile +++ b/linux/ecosystem/postgres/10/Dockerfile @@ -1,4 +1,4 @@ -FROM epicmorg/debian:bullseye +FROM epicmorg/debian:bookworm LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" ARG DEBIAN_FRONTEND=noninteractive @@ -16,25 +16,155 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 +#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 #################################################################################################################################### # http://apt.postgresql.org/pub/repos/apt/pool/10/p/postgresql-10/ #################################################################################################################################### ENV PG_MAJOR 10 +ENV PG_STATS 2.1 -RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ - echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list +RUN install -d /usr/share/postgresql-common/pgdg && \ + curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-snapshot main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list && \ + echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg-testing main' $PG_MAJOR >> /etc/apt/sources.list.d/pgdg.list RUN apt-get update \ && apt-get install -y postgresql-common \ && sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf \ && apt-get install -y \ postgresql-$PG_MAJOR \ + postgresql-server-dev-$PG_MAJOR \ postgresql-contrib-$PG_MAJOR \ + postgresql-postgis \ + postgresql-postgis-scripts \ + postgresql-pljava-common \ + postgresql-pgrouting \ + postgresql-pgrouting-scripts \ + postgresql-comparator \ + postgresql-doc-$PG_MAJOR \ + postgresql-pltcl-$PG_MAJOR \ + postgresql-plpython3-$PG_MAJOR \ + postgresql-plperl-$PG_MAJOR \ + postgresql-$PG_MAJOR-wal2json \ + postgresql-$PG_MAJOR-unit \ + postgresql-$PG_MAJOR-toastinfo \ + postgresql-$PG_MAJOR-tds-fdw \ + postgresql-$PG_MAJOR-tdigest \ + postgresql-$PG_MAJOR-tablelog \ +# postgresql-$PG_MAJOR-squeeze \ + postgresql-$PG_MAJOR-snakeoil \ + postgresql-$PG_MAJOR-slony1-2 \ + postgresql-$PG_MAJOR-similarity \ + postgresql-$PG_MAJOR-set-user \ + postgresql-$PG_MAJOR-semver \ + postgresql-$PG_MAJOR-rum \ + postgresql-$PG_MAJOR-roaringbitmap \ + postgresql-$PG_MAJOR-repmgr \ + postgresql-$PG_MAJOR-repack \ + postgresql-$PG_MAJOR-rdkit \ + postgresql-$PG_MAJOR-rational \ + postgresql-$PG_MAJOR-q3c \ + postgresql-$PG_MAJOR-prioritize \ + postgresql-$PG_MAJOR-preprepare \ + postgresql-$PG_MAJOR-prefix \ + postgresql-$PG_MAJOR-powa \ +# postgresql-$PG_MAJOR-postgis-3-scripts \ +# postgresql-$PG_MAJOR-postgis-3 \ + postgresql-$PG_MAJOR-pointcloud \ + postgresql-$PG_MAJOR-plsh \ + postgresql-$PG_MAJOR-plr \ + postgresql-$PG_MAJOR-plproxy \ + postgresql-$PG_MAJOR-plprofiler \ + postgresql-$PG_MAJOR-plpgsql-check \ + postgresql-$PG_MAJOR-pllua \ + postgresql-$PG_MAJOR-pljava \ + postgresql-$PG_MAJOR-pldebugger \ +# postgresql-$PG_MAJOR-pgvector \ + postgresql-$PG_MAJOR-pgtap \ + postgresql-$PG_MAJOR-pgsphere \ +# postgresql-$PG_MAJOR-pgrouting-scripts \ +# postgresql-$PG_MAJOR-pgrouting-doc \ +# postgresql-$PG_MAJOR-pgrouting \ + postgresql-$PG_MAJOR-pgq3 \ + postgresql-$PG_MAJOR-pgq-node \ + postgresql-$PG_MAJOR-pgpool2 \ + postgresql-$PG_MAJOR-pgpcre \ + postgresql-$PG_MAJOR-pgmp \ + postgresql-$PG_MAJOR-pgmemcache \ + postgresql-$PG_MAJOR-pglogical-ticker \ + postgresql-$PG_MAJOR-pglogical \ + postgresql-$PG_MAJOR-pgl-ddl-deploy \ + postgresql-$PG_MAJOR-pgfincore \ +# postgresql-$PG_MAJOR-pgfaceting \ + postgresql-$PG_MAJOR-pgextwlist \ + postgresql-$PG_MAJOR-pgauditlogtofile \ + postgresql-$PG_MAJOR-pgaudit \ + postgresql-$PG_MAJOR-pg-wait-sampling \ + postgresql-$PG_MAJOR-pg-track-settings \ + postgresql-$PG_MAJOR-pg-stat-kcache \ + postgresql-$PG_MAJOR-pg-qualstats \ +# postgresql-$PG_MAJOR-pg-hint-plan \ +# postgresql-$PG_MAJOR-pg-failover-slots \ + postgresql-$PG_MAJOR-pg-fact-loader \ + postgresql-$PG_MAJOR-pg-checksums \ + postgresql-$PG_MAJOR-pg-catcheck \ + postgresql-$PG_MAJOR-periods \ + postgresql-$PG_MAJOR-partman \ + postgresql-$PG_MAJOR-orafce \ + postgresql-$PG_MAJOR-oracle-fdw \ + postgresql-$PG_MAJOR-omnidb \ + postgresql-$PG_MAJOR-numeral \ + postgresql-$PG_MAJOR-mysql-fdw \ +# postgresql-$PG_MAJOR-mobilitydb \ + postgresql-$PG_MAJOR-mimeo \ + postgresql-$PG_MAJOR-londiste-sql \ + postgresql-$PG_MAJOR-jsquery \ + postgresql-$PG_MAJOR-ip4r \ + postgresql-$PG_MAJOR-icu-ext \ + postgresql-$PG_MAJOR-hypopg \ + postgresql-$PG_MAJOR-http \ + postgresql-$PG_MAJOR-hll \ +# postgresql-$PG_MAJOR-h3 \ + postgresql-$PG_MAJOR-first-last-agg \ + postgresql-$PG_MAJOR-extra-window-functions \ + postgresql-$PG_MAJOR-dirtyread \ + postgresql-$PG_MAJOR-decoderbufs \ + postgresql-$PG_MAJOR-debversion \ + postgresql-$PG_MAJOR-cron \ +# postgresql-$PG_MAJOR-credcheck \ + postgresql-$PG_MAJOR-bgw-replstatus \ +# postgresql-$PG_MAJOR-auto-failover \ + postgresql-$PG_MAJOR-asn1oid \ +# postgresql-$PG_MAJOR-age \ + postgresql-client-8.2 \ + postgresql-client-8.3 \ + postgresql-client-8.4 \ + postgresql-client-9.0 \ + postgresql-client-9.1 \ + postgresql-client-9.2 \ + postgresql-client-9.3 \ + postgresql-client-9.4 \ + postgresql-client-9.5 \ + postgresql-client-9.6 \ + postgresql-client-10 \ + postgresql-client-11 \ + postgresql-client-12 \ + postgresql-client-13 \ + postgresql-client-14 \ + postgresql-client-15 \ + postgresql-client-16 \ && rm -rf /var/lib/apt/lists/* +RUN cd /tmp \ + && wget https://github.com/EnterpriseDB/system_stats/archive/refs/tags/v$PG_STATS.tar.gz \ + && tar -zxvf v$PG_STATS.tar.gz \ + && cd /tmp/system_stats-$PG_STATS \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make USE_PGXS=1 \ + && PATH="/usr/lib/postgresql/$PG_MAJOR/bin:$PATH" make install USE_PGXS=1 \ + && rm -rf /tmp/* + RUN mkdir /docker-entrypoint-initdb.d RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql diff --git a/linux/ecosystem/postgres/11/Dockerfile b/linux/ecosystem/postgres/11/Dockerfile index 510ae5428..d66e77b07 100644 --- a/linux/ecosystem/postgres/11/Dockerfile +++ b/linux/ecosystem/postgres/11/Dockerfile @@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 +#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 #################################################################################################################################### # http://apt.postgresql.org/pub/repos/apt/pool/11/p/postgresql-11/ diff --git a/linux/ecosystem/postgres/12/Dockerfile b/linux/ecosystem/postgres/12/Dockerfile index ee2d3a668..73cd357e1 100644 --- a/linux/ecosystem/postgres/12/Dockerfile +++ b/linux/ecosystem/postgres/12/Dockerfile @@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 +#RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 #################################################################################################################################### # http://apt.postgresql.org/pub/repos/apt/pool/12/p/postgresql-12/