Skip to content

Commit b3e816b

Browse files
authored
SNOW-1518775: fix connector fips docker image (#1992)
1 parent d7ab2fe commit b3e816b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

ci/docker/connector_test_fips/Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM centos:7
1+
FROM centos:8
22

33
# This is to solve permission issue, read https://denibertovic.com/posts/handling-permissions-with-docker-volumes/
44
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.14/gosu-amd64"
@@ -12,8 +12,13 @@ RUN chmod 777 /home/user
1212

1313
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
1414

15-
RUN yum install -y redhat-rpm-config gcc libffi-devel openssl openssl-devel centos-release-scl && \
16-
yum install -y rh-python38 rh-python38-python-devel && \
15+
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \
16+
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \
17+
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
18+
19+
RUN yum clean all && \
20+
yum install -y redhat-rpm-config gcc libffi-devel openssl openssl-devel && \
21+
yum install -y python38 python38-devel && \
1722
yum clean all && \
1823
rm -rf /var/cache/yum
19-
RUN scl enable rh-python38 "python3.8 -m pip install --user --upgrade pip setuptools wheel"
24+
RUN python3 -m pip install --user --upgrade pip setuptools wheel

0 commit comments

Comments
 (0)