From ffd1ad97d23eeb9f9cf7c2bda66dd85df8225bd7 Mon Sep 17 00:00:00 2001 From: Polina Bungina <27892524+hughcapet@users.noreply.github.com> Date: Fri, 21 Jul 2023 15:10:13 +0200 Subject: [PATCH] Fix Dockerfile_s (#2770) * Install dumb-init using apt * Remove python 2.7 packages purge --- Dockerfile | 5 ++--- Dockerfile.citus | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4aa0ce5c..c5b927ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,8 +25,7 @@ RUN set -ex \ | grep -Ev '^python3-(sphinx|etcd|consul|kazoo|kubernetes)' \ | xargs apt-get install -y vim curl less jq locales haproxy sudo \ python3-etcd python3-kazoo python3-pip busybox \ - net-tools iputils-ping --fix-missing \ - && pip3 install dumb-init \ + net-tools iputils-ping dumb-init --fix-missing \ \ # Cleanup all locales but en_US.UTF-8 && find /usr/share/i18n/charmaps/ -type f ! -name UTF-8.gz -delete \ @@ -71,7 +70,7 @@ RUN set -ex \ # Clean up all useless packages and some files && apt-get purge -y --allow-remove-essential python3-pip gzip bzip2 util-linux e2fsprogs \ libmagic1 bsdmainutils login ncurses-bin libmagic-mgc e2fslibs bsdutils \ - exim4-config gnupg-agent dirmngr libpython2.7-stdlib libpython2.7-minimal \ + exim4-config gnupg-agent dirmngr \ git make \ && apt-get autoremove -y \ && apt-get clean -y \ diff --git a/Dockerfile.citus b/Dockerfile.citus index 8693b504..7e6ec18c 100644 --- a/Dockerfile.citus +++ b/Dockerfile.citus @@ -25,7 +25,7 @@ RUN set -ex \ | grep -Ev '^python3-(sphinx|etcd|consul|kazoo|kubernetes)' \ | xargs apt-get install -y vim curl less jq locales haproxy sudo \ python3-etcd python3-kazoo python3-pip busybox \ - net-tools iputils-ping lsb-release --fix-missing \ + net-tools iputils-ping lsb-release dumb-init --fix-missing \ && if [ $(dpkg --print-architecture) = 'arm64' ]; then \ apt-get install -y postgresql-server-dev-$PG_MAJOR \ git gcc make autoconf \ @@ -42,7 +42,6 @@ RUN set -ex \ && apt-get update -y \ && apt-get -y install postgresql-$PG_MAJOR-citus-11.3; \ fi \ - && pip3 install dumb-init \ \ # Cleanup all locales but en_US.UTF-8 && find /usr/share/i18n/charmaps/ -type f ! -name UTF-8.gz -delete \ @@ -88,7 +87,7 @@ RUN set -ex \ # Clean up all useless packages and some files && apt-get purge -y --allow-remove-essential python3-pip gzip bzip2 util-linux e2fsprogs \ libmagic1 bsdmainutils login ncurses-bin libmagic-mgc e2fslibs bsdutils \ - exim4-config gnupg-agent dirmngr libpython2.7-stdlib libpython2.7-minimal \ + exim4-config gnupg-agent dirmngr \ postgresql-server-dev-$PG_MAJOR git gcc make autoconf \ libc6-dev flex libicu-dev libkrb5-dev liblz4-dev \ libpam0g-dev libreadline-dev libselinux1-dev libssl-dev libxslt1-dev libzstd-dev uuid-dev \