-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-base-image.patch
45 lines (41 loc) · 1.56 KB
/
python-base-image.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff --git a/Containerfile b/Containerfile
index d5571a5..f489e0e 100644
--- a/Containerfile
+++ b/Containerfile
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-ARG CONTAINER_IMAGE=quay.io/centos/centos:stream8
+ARG CONTAINER_IMAGE=quay.io/centos/centos:stream9
ARG REMOTE_SOURCE=.
ARG REMOTE_SOURCE_DIR=/remote-source
@@ -32,8 +32,7 @@ RUN if [[ "$CONTAINER_IMAGE" =~ "centos" ]] ; then \
dnf update -y ; \
dnf install -y epel-release dnf-plugins-core ; \
dnf config-manager --set-disabled epel ; \
- dnf config-manager --set-enabled powertools ; \
- dnf module enable -y python38-devel ; \
+ dnf config-manager --enable crb ; \
dnf clean all ; \
rm -rf /var/cache/{dnf,yum} ; \
rm -rf /var/lib/dnf/history.* ; \
@@ -41,20 +40,12 @@ RUN if [[ "$CONTAINER_IMAGE" =~ "centos" ]] ; then \
fi
RUN dnf update -y \
- && dnf install -y glibc-langpack-en python38-pip \
+ && dnf install -y glibc-langpack-en python3-pip \
&& dnf clean all \
&& rm -rf /var/cache/{dnf,yum} \
&& rm -rf /var/lib/dnf/history.* \
&& rm -rf /var/log/*
-# NOTE(pabelanger): We do this to allow users to install python36 but not
-# change python3 to python36.
-RUN alternatives --set python3 /usr/bin/python3.8
-
-# Upgrade pip to fix wheel cache for locally built wheels.
-# See https://github.com/pypa/pip/issues/6852
-RUN python3 -m pip install --no-cache-dir -U pip
-
RUN dnf update -y \
&& dnf install -y gcc \
&& pip3 install dumb-init --no-cache-dir -c constraints.txt \