Skip to content

Commit cd13f18

Browse files
authored
More python library pinning (#496)
1 parent 03df47c commit cd13f18

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

py23-image/centos-7/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ RUN wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \
2222
RUN yum remove -y --setopt=tsflags=noscripts gcc openssl-devel bzip2-devel libffi-devel \
2323
&& yum autoremove -y \
2424
&& yum clean all
25-
RUN pip3 --no-cache-dir install ansible==3.4.0 requests
25+
RUN pip3 --no-cache-dir install ansible==3.4.0 requests==2.25.1 pyyaml==5.4.1 jmespath==0.10.0

py23-image/centos-8/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ RUN wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \
2626
RUN yum remove -y --setopt=tsflags=noscripts gcc openssl-devel bzip2-devel libffi-devel \
2727
&& yum autoremove -y \
2828
&& yum clean all
29-
RUN pip3 --no-cache-dir install ansible==3.4.0 requests \
30-
&& pip --no-cache-dir install pyyaml requests
29+
RUN pip3 --no-cache-dir install ansible==3.4.0 requests==2.25.1 pyyaml==5.4.1 jmespath==0.10.0 \
30+
&& pip --no-cache-dir install requests==2.25.1 pyyaml==5.4.1 jmespath==0.10.0

py23-image/debian-10/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN apt-get update -y \
88
&& ln -sf /usr/bin/pip3.7 /usr/bin/pip3 \
99
&& ln -sf /usr/bin/python3.7 /usr/bin/python \
1010
&& ln -sf /usr/bin/pip3.7 /usr/bin/pip \
11-
&& pip3 install --upgrade ansible==3.4.0
11+
&& pip3 install --upgrade ansible==3.4.0 requests==2.25.1 pyyaml==5.4.1 jmespath==0.10.0

py23-image/debian-9/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN apt-get update -y \
88
&& ln -sf /usr/bin/pip3.7 /usr/bin/pip3 \
99
&& ln -sf /usr/bin/python3.7 /usr/bin/python \
1010
&& ln -sf /usr/bin/pip3.7 /usr/bin/pip \
11-
&& pip3 install --upgrade ansible==3.4.0
11+
&& pip3 install --upgrade ansible==3.4.0 requests==2.25.1 pyyaml==5.4.1 jmespath==0.10.0

py23-image/redhat-8/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ USER root
44

55
RUN microdnf -y --nodocs update \
66
&& microdnf -y --nodocs install python2-pip python2-devel \
7-
&& pip2 --no-cache-dir install requests jmespath \
7+
&& pip2 --no-cache-dir install requests pyyaml jmespath \
88
&& ln -sf /usr/bin/python3.7 /usr/bin/python3 \
99
&& ln -sf /usr/bin/pip3.7 /usr/bin/pip3 \
1010
&& ln -sf /usr/bin/python3.7 /usr/bin/python \
1111
&& ln -sf /usr/bin/pip3.7 /usr/bin/pip \
12-
&& pip3 install --upgrade ansible==3.4.0
12+
&& pip3 install --upgrade ansible==3.4.0 requests==2.25.1 pyyaml==5.4.1 jmespath==0.10.0

0 commit comments

Comments
 (0)