Skip to content

Commit 7992f8a

Browse files
move py3/pip3 symlink to base
1 parent c2560fa commit 7992f8a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

base/redhat-8/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,7 @@ echo "
111111
# Clean
112112
microdnf clean all
113113
rm -rf /install.sh /anaconda-post.log /var/log/anaconda/*
114+
115+
# Symlink python/pip
116+
ln -sf /usr/bin/python3.9 /usr/bin/python3
117+
ln -sf /usr/bin/pip3.9 /usr/bin/pip3

py23-image/redhat-8/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ RUN microdnf -y --nodocs update \
66
&& microdnf -y --nodocs install python2 \
77
&& pip2 install --upgrade pip \
88
&& pip2 --no-cache-dir install requests pyyaml jmespath \
9-
&& ln -sf /usr/bin/python3.9 /usr/bin/python3 \
10-
&& ln -sf /usr/bin/pip3.9 /usr/bin/pip3 \
119
&& ln -sf /usr/bin/python3.9 /usr/bin/python \
1210
&& ln -sf /usr/bin/pip3.9 /usr/bin/pip \
1311
&& pip3 install --upgrade requests==2.25.1 pyyaml==5.4.1 jmespath==0.10.0 \

0 commit comments

Comments
 (0)