Skip to content

Commit 6343403

Browse files
committed
Upgrade stunnel to 5
1 parent 1b5b432 commit 6343403

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ENV EFS_CLIENT_SOURCE=$client_source
2828

2929
RUN OS=${TARGETOS} ARCH=${TARGETARCH} make $TARGETOS/$TARGETARCH
3030

31-
FROM public.ecr.aws/eks-distro-build-tooling/python:3.9-gcc-al23 as rpm-provider
31+
FROM public.ecr.aws/eks-distro-build-tooling/python:3.9.14-gcc-al2 as rpm-provider
3232

3333
# Install efs-utils from github by default. It can be overriden to `yum` with --build-arg when building the Docker image.
3434
# If value of `EFSUTILSSOURCE` build arg is overriden with `yum`, docker will install efs-utils from Amazon Linux 2's yum repo.
@@ -38,7 +38,7 @@ RUN mkdir -p /tmp/rpms && \
3838
then echo "Installing efs-utils from Amazon Linux 2 yum repo" && \
3939
yum -y install --downloadonly --downloaddir=/tmp/rpms amazon-efs-utils-1.35.0-1.amzn2.noarch; \
4040
else echo "Installing efs-utils from github using the latest git tag" && \
41-
yum -y install systemd git rpm-build make openssl-devel curl && \
41+
yum -y install systemd git rpm-build make openssl-devel curl && \
4242
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
4343
source $HOME/.cargo/env && \
4444
rustup update && \
@@ -55,14 +55,13 @@ RUN mkdir -p /tmp/rpms && \
5555
RUN pip3 install --user botocore
5656

5757
# This image is equivalent to the eks-distro-minimal-base-python image but with pip installed as well
58-
FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-python-builder:3.9.16-al23 as rpm-installer
58+
FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-python-builder:3.9.14-al2 as rpm-installer
5959

6060
COPY --from=rpm-provider /tmp/rpms/* /tmp/download/
6161

6262
# second param indicates to skip installing dependency rpms, these will be installed manually
6363
# cd, ls, cat, vim, tcpdump, are for debugging
6464
RUN clean_install amazon-efs-utils true && \
65-
clean_install crypto-policies true && \
6665
install_binary \
6766
/usr/bin/cat \
6867
/usr/bin/cd \
@@ -77,7 +76,7 @@ RUN clean_install amazon-efs-utils true && \
7776
/usr/bin/openssl \
7877
/usr/bin/sed \
7978
/usr/bin/stat \
80-
/usr/bin/stunnel \
79+
/usr/bin/stunnel5 \
8180
/usr/sbin/tcpdump \
8281
/usr/bin/which && \
8382
cleanup "efs-csi"
@@ -89,7 +88,7 @@ RUN clean_install amazon-efs-utils true && \
8988
# Those static files need to be copied back to the config directory when the driver starts up.
9089
RUN mv /newroot/etc/amazon/efs /newroot/etc/amazon/efs-static-files
9190

92-
FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-python:3.9.16-al23 AS linux-amazon
91+
FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-python:3.9.14-al2 AS linux-amazon
9392

9493
COPY --from=rpm-installer /newroot /
9594
COPY --from=rpm-provider /root/.local/lib/python3.9/site-packages/ /usr/lib/python3.9/site-packages/

0 commit comments

Comments
 (0)