@@ -74,7 +74,7 @@ COPY cron_unprivileged.c /package/
7474 # && curl -sL https://github.com/zalando-pg/bg_mon/archive/$BG_MON_COMMIT.tar.gz | tar xz \
7575 # && curl -sL https://github.com/zalando-pg/pg_auth_mon/archive/$PG_AUTH_MON_COMMIT.tar.gz | tar xz \
7676
77- RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python-etcd psutil requests cdiff ydiff --upgrade \
77+ RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python-etcd psutil requests cdiff ydiff==1.3 --upgrade \
7878 && if [[ $PATRONI_VERSION == "multisite-" * ]]; then \
7979 git clone -b $PATRONI_VERSION https://github.com/cybertec-postgresql/patroni; \
8080 pip3 install ./patroni[kubernetes,etcd,etcd3]; \
@@ -126,9 +126,8 @@ RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python
126126 && cd admin/runit-2.1.2 && package/install \
127127 && ln -s /usr/local/bin/runsvdir /usr/bin/runsvdir \
128128 && rm -rf /pg_permissions /pgextwlist /pg_stat_kcache /pgnodemx /timescaledb /set_user /pam-oauth2 \
129- && rm /etc/pgbackrest.conf && rm -rf /var/spool/pgbackrest;
130-
131- RUN ${PACKAGER} -y remove $(rpm -qa "*devel*" ) python3-pip python3-wheel python3-dev python3-setuptools git patchutils flatpak glibc-static gcc glibc-devel --exclude libgeotiff17-devel --exclude libtiff-devel --exclude libspatialite50-devel \
129+ && rm /etc/pgbackrest.conf && rm -rf /var/spool/pgbackrest \
130+ && ${PACKAGER} -y remove $(rpm -qa "*devel*" ) python3-pip python3-wheel python3-dev python3-setuptools git patchutils flatpak glibc-static gcc glibc-devel --exclude libgeotiff17-devel --exclude libtiff-devel --exclude libspatialite50-devel \
132131 && ${PACKAGER} -y autoremove \
133132 && ${PACKAGER} -y clean dbcache \
134133 && ${PACKAGER} -y clean all;
@@ -205,6 +204,6 @@ COPY launcher/postgres/launch.sh /
205204
206205ENTRYPOINT ["/scripts/nss_wrapper/nss_wrapper.sh" ]
207206
208- USER 26
207+ USER postgres
209208
210209CMD ["/bin/sh" , "/launch.sh" , "init" ]
0 commit comments