@@ -95,13 +95,9 @@ RUN pip3 install patroni[kubernetes$EXTRAS]==$PATRONI_VERSION
9595
9696RUN mkdir /usr/lib/postgresql
9797ENV PATHBACKUP = $PATH
98- # ENV PATH=$PATH:/usr/pgsql-$PGVERSION/bin
99- # RUN echo $PATH
10098# Install pam_oauth2.so
10199RUN git clone -b $PAM_OAUTH2 --recurse-submodules https://github.com/zalando-pg/pam-oauth2.git \
102100 && make -C pam-oauth2 install \
103- # && curl -sL https://github.com/zalando-pg/bg_mon/archive/$BG_MON_COMMIT.tar.gz | tar xz \
104- # && curl -sL https://github.com/zalando-pg/pg_auth_mon/archive/$PG_AUTH_MON_COMMIT.tar.gz | tar xz \
105101 && curl -sL https://github.com/cybertec-postgresql/pg_permissions/archive/$PG_PERMISSIONS_COMMIT.tar.gz | tar xz \
106102 && curl -sL https://github.com/x4m/pg_tm_aux/archive/$PG_TM_AUX_COMMIT.tar.gz | tar xz \
107103 && curl -sL https://github.com/zubkov-andrei/pg_profile/archive/$PG_PROFILE.tar.gz | tar xz \
@@ -110,7 +106,6 @@ RUN git clone -b $PAM_OAUTH2 --recurse-submodules https://github.com/zalando-pg/
110106 && git clone https://github.com/dimitri/pgextwlist.git \
111107 && git clone https://github.com/powa-team/pg_stat_kcache.git \
112108 && git clone https://github.com/crunchydata/pgnodemx \
113- # && git clone https://github.com/pgq/pgqd.git \
114109\
115110 && ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 postgresql${PGVERSION} libevent-devel brotli-devel libbrotli \
116111 && ${PACKAGER} -y clean all\
@@ -122,30 +117,11 @@ RUN git clone -b $PAM_OAUTH2 --recurse-submodules https://github.com/zalando-pg/
122117 && for version in $PG_SUPPORTED_VERSIONS; do \
123118 ${PACKAGER} -y update && \
124119 ${PACKAGER} -y install postgresql${version}-pltcl \
125- # postgresql${version}-dirtyread \
126- # postgresql${version}-extra-window-functions \
127- # postgresql${version}-first-last-agg \
128- # postgresql${version}-hll \
129- # postgresql${version}-hypopg \
130120 pgaudit*${version} \
131- # postgresql${version}-pg-checksums \
132- # postgresql${version}-pgl-ddl-deploy \
133- # postgresql${version}-pglogical \
134- # postgresql${version}-pglogical-ticker \
135- # postgresql${version}-pgq-node \
136- # postgresql${version}-pldebugger \
137- # postgresql${version}-pllua \
138- # postgresql${version}-plpgsql-check \
139- # postgresql${version}-plproxy \
140- # postgresql${version}-repack \
141- # postgresql${version}-wal2json \
142- # && ${PACKAGER} -y clean all; \
143121 # Install PostgreSQL binaries, contrib, plproxy and multiple pl's
144122 && ${PACKAGER} -y install -y postgresql${version}-contrib \
145123 postgresql${version}-plpython3 postgresql${version}-devel \
146124 pg_cron_${version} \
147- # postgresql-${version}-pgq3 \
148- # postgresql-${version}-pg-stat-kcache $EXTRAS \
149125 # Modify for using origial-spilo scripts
150126 && ln -s /usr/pgsql-${version} /usr/lib/postgresql/${version} \
151127 && export PATH=$PATHBACKUP:/usr/pgsql-${version}/bin \
@@ -175,6 +151,14 @@ RUN git clone -b $PAM_OAUTH2 --recurse-submodules https://github.com/zalando-pg/
175151 && ${PACKAGER} -y clean all; \
176152 done
177153
154+ RUN ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
155+ glibc-devel glibc-static
156+
157+ RUN mkdir /package && cd /package && wget http://smarden.org/runit/runit-2.1.2.tar.gz && tar -xvzf runit-2.1.2.tar.gz && rm runit-2.1.2.tar.gz && cd admin/runit-2.1.2 && package/install
158+
159+ # Modify for using origial-spilo scripts
160+ RUN ln -s /usr/local/bin/dumb-init /usr/bin/dumb-init && ln -s /usr/local/bin/runsvdir /usr/bin/runsvdir
161+
178162# Clean Up git-repos
179163RUN rm -rf /pgextwlist \
180164 && rm -rf /pg_stat_kcache \
@@ -247,14 +231,6 @@ RUN rm /etc/pgbackrest.conf && rm -rf /var/spool/pgbackrest;
247231COPY scripts bootstrap major_upgrade /scripts/
248232COPY launcher/postgres/launch.sh /
249233
250- RUN ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
251- glibc-devel glibc-static
252-
253- RUN mkdir /package && cd /package && wget http://smarden.org/runit/runit-2.1.2.tar.gz && tar -xvzf runit-2.1.2.tar.gz && rm runit-2.1.2.tar.gz && cd admin/runit-2.1.2 && package/install
254-
255- # Modify for using origial-spilo scripts
256- RUN ln -s /usr/local/bin/dumb-init /usr/bin/dumb-init && ln -s /usr/local/bin/runsvdir /usr/bin/runsvdir
257-
258234# RUN curl -LO https://dl.k8s.io/release/v1.26.0/bin/linux/amd64/kubectl && chmod +x kubectl && mv ./kubectl /usr/local/bin/
259235
260236USER 26
0 commit comments