@@ -13,11 +13,9 @@ ARG OLD_PG_VERSIONS
1313ARG PG_SUPPORTED_VERSIONS="$PGVERSION"
1414ARG PG_SUPPORTED_VERSIONS="$OLD_PG_VERSIONS $PGVERSION"
1515ARG TIMESCALEDB="1.7.5 2.3.1 2.13.0"
16+ ARG ARCH
1617# Spilo-specific
1718ENV SET_USER=REL3_0_0 \
18- # BG_MON_COMMIT=e22182e129ce357b5aa80090fba2aacfc42b1996 \
19- # PG_AUTH_MON_COMMIT=52d90bbaa6d3c61195cd9532ebe036b1183808c5 \
20- # PG_MON_COMMIT=54fbdcc3cfe7e2a626bd96dda644d9a0c6866b58 \
2119 PLPROFILER=REL4_1 \
2220 PG_PROFILE=0.3.6 \
2321 PAM_OAUTH2=v1.0.1 \
@@ -28,6 +26,7 @@ ENV SET_USER=REL3_0_0 \
2826# Get some Standard-Stuff
2927RUN if [ "$BASEOS" = "ubi8" ] ; then \
3028 ${PACKAGER} -y update && ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
29+ --setopt=skip_missing_names_on_install=False \
3130 openssh-clients \
3231 openssh-server \
3332 shadow-utils \
@@ -40,15 +39,14 @@ RUN if [ "$BASEOS" = "ubi8" ] ; then \
4039 python3-psutil \
4140 python3-requests \
4241 python3-etcd \
43- # python3-pyyaml \
42+ python3-pyyaml \
43+ python3-setuptools \
4444 git \
4545 patchutils \
4646 binutils \
4747 make \
4848 cmake \
4949 gcc \
50- # curl \
51- libcurl-devel \
5250 pam-devel \
5351 wget \
5452 mlocate \
@@ -58,11 +56,11 @@ RUN if [ "$BASEOS" = "ubi8" ] ; then \
5856 redhat-rpm-config \
5957 krb5-devel \
6058 busybox \
61- dpkg \
6259 jq \
6360 rsync \
61+ dumb-init \
6462 libicu \
65- pgbackrest-${PGBACKREST_VERSION} \
63+ pgbackrest-${PGBACKREST_VERSION} \
6664 && ${PACKAGER} -y clean all ; \
6765else \
6866 ${PACKAGER} -y update && ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
@@ -78,17 +76,15 @@ else \
7876 python3-psycopg2 \
7977 python3-psutil \
8078 python3-requests \
81- python3-etcd \
79+ # python3-etcd \
8280 python3-pyyaml \
83- python3-etcd \
81+ python3-setuptools \
8482 git \
8583 patchutils \
8684 binutils \
8785 make \
8886 cmake \
8987 gcc \
90- # curl \
91- libcurl-devel \
9288 pam-devel \
9389 wget \
9490 mlocate \
9894 redhat-rpm-config \
9995 krb5-devel \
10096 busybox \
101- dpkg \
10297 jq \
10398 rsync \
10499 dumb-init \
@@ -107,71 +102,22 @@ else \
107102 && ${PACKAGER} -y clean all ; \
108103fi
109104
110- # RUN ${PACKAGER} -y update && ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
111- # openssh-clients \
112- # openssh-server \
113- # shadow-utils \
114- # tar \
115- # bzip2 \
116- # lz4 \
117- # python3 \
118- # python3-pip \
119- # python3-psycopg2 \
120- # python3-psutil \
121- # python3-requests \
122- # python3-etcd \
123- # #python3-pyyaml \
124- # git \
125- # patchutils \
126- # binutils \
127- # make \
128- # cmake \
129- # gcc \
130- # #curl \
131- # libcurl-devel \
132- # pam-devel \
133- # wget \
134- # mlocate \
135- # git-clang-format \
136- # openssl-devel \
137- # ccache \
138- # redhat-rpm-config \
139- # krb5-devel \
140- # busybox \
141- # dpkg \
142- # jq \
143- # rsync \
144- # && ${PACKAGER} -y clean all;
145-
146105# install etcdctl
147- RUN ETCDVERSION=3.3.27 \
148- && curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etcd-v${ETCDVERSION}-linux-$(dpkg --print-architecture) .tar.gz \
106+ RUN ETCDVERSION=3.5.13 \
107+ && curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etcd-v${ETCDVERSION}-linux-${ARCH} .tar.gz \
149108 | tar xz -C /bin --strip=1 --wildcards --no-anchored --no-same-owner etcdctl etcd;
150109
151- # Install Patroni
152- # RUN pip3 install 'PyYAML<6.0' setuptools pystache loader dumb-init kazoo meld3 boto
153- # #swiftclient
154- # RUN ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
155- # python3-etcd python3-consul \
156- # python3-gevent python3-greenlet python3-cachetools \
157- # python3-rsa python3-pyasn1-modules python3-cffi \
158- # && ${PACKAGER} -y clean all;
159-
160- # python3-kazoo python3-meld3 python3-boto python3-swiftclient
161-
162- # RUN pip3 install patroni[kubernetes$EXTRAS]==$PATRONI_VERSION
163-
164- # RUN mkdir /usr/lib/postgresql
165110ENV PATHBACKUP = $PATH
166- # ENV PATH=$PATH:/usr/pgsql-$PGVERSION/bin
167- # RUN echo $PATH
111+
168112# Install pam_oauth2.so
169113# RUN #git clone -b $PAM_OAUTH2 --recurse-submodules https://github.com/zalando-pg/pam-oauth2.git \
170114 # && make -C pam-oauth2 install \
171115 # && curl -sL https://github.com/zalando-pg/bg_mon/archive/$BG_MON_COMMIT.tar.gz | tar xz \
172116 # && curl -sL https://github.com/zalando-pg/pg_auth_mon/archive/$PG_AUTH_MON_COMMIT.tar.gz | tar xz \
173- RUN pip3 install 'PyYAML<6.0' setuptools pystache loader dumb-init kazoo meld3 boto \
174- && pip3 install patroni[kubernetes$EXTRAS]==$PATRONI_VERSION \
117+
118+ # pip3.11 install 'PyYAML<6.0' setuptools pystache loader dumb-init kazoo meld3 boto \
119+ RUN pip3 install 'PyYAML<6.0' setuptools pystache loader dumb-init kazoo meld3 boto python-etcd --upgrade \
120+ && pip3 install patroni[kubernetes$EXTRAS]==$PATRONI_VERSION --upgrade \
175121 && mkdir /usr/lib/postgresql \
176122 && curl -sL https://github.com/cybertec-postgresql/pg_permissions/archive/$PG_PERMISSIONS_COMMIT.tar.gz | tar xz \
177123 # && curl -sL https://github.com/x4m/pg_tm_aux/archive/$PG_TM_AUX_COMMIT.tar.gz | tar xz \
@@ -349,7 +295,7 @@ RUN for version in $PG_SUPPORTED_VERSIONS; do \
349295done
350296
351297# Clean Up Packages binutils glibc-devel glibc-static
352- RUN ${PACKAGER} -y remove python3-pip python3-wheel python3-dev git patchutils flatpak glibc-static gcc glibc-devel \
298+ RUN ${PACKAGER} -y remove python3.11 -pip python3.11 -wheel python3.11 -dev git patchutils flatpak glibc-static gcc glibc-devel \
353299 # && ${PACKAGER} -y autoremove \
354300 && ${PACKAGER} -y clean dbcache \
355301 && ${PACKAGER} -y clean all;
0 commit comments