@@ -28,7 +28,7 @@ ENV EFS_CLIENT_SOURCE=$client_source
28
28
29
29
RUN OS=${TARGETOS} ARCH=${TARGETARCH} make $TARGETOS/$TARGETARCH
30
30
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
32
32
33
33
# Install efs-utils from github by default. It can be overriden to `yum` with --build-arg when building the Docker image.
34
34
# 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 && \
38
38
then echo "Installing efs-utils from Amazon Linux 2 yum repo" && \
39
39
yum -y install --downloadonly --downloaddir=/tmp/rpms amazon-efs-utils-1.35.0-1.amzn2.noarch; \
40
40
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 && \
42
42
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
43
43
source $HOME/.cargo/env && \
44
44
rustup update && \
@@ -55,14 +55,13 @@ RUN mkdir -p /tmp/rpms && \
55
55
RUN pip3 install --user botocore
56
56
57
57
# 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
59
59
60
60
COPY --from=rpm-provider /tmp/rpms/* /tmp/download/
61
61
62
62
# second param indicates to skip installing dependency rpms, these will be installed manually
63
63
# cd, ls, cat, vim, tcpdump, are for debugging
64
64
RUN clean_install amazon-efs-utils true && \
65
- clean_install crypto-policies true && \
66
65
install_binary \
67
66
/usr/bin/cat \
68
67
/usr/bin/cd \
@@ -77,7 +76,7 @@ RUN clean_install amazon-efs-utils true && \
77
76
/usr/bin/openssl \
78
77
/usr/bin/sed \
79
78
/usr/bin/stat \
80
- /usr/bin/stunnel \
79
+ /usr/bin/stunnel5 \
81
80
/usr/sbin/tcpdump \
82
81
/usr/bin/which && \
83
82
cleanup "efs-csi"
@@ -89,7 +88,7 @@ RUN clean_install amazon-efs-utils true && \
89
88
# Those static files need to be copied back to the config directory when the driver starts up.
90
89
RUN mv /newroot/etc/amazon/efs /newroot/etc/amazon/efs-static-files
91
90
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
93
92
94
93
COPY --from=rpm-installer /newroot /
95
94
COPY --from=rpm-provider /root/.local/lib/python3.9/site-packages/ /usr/lib/python3.9/site-packages/
0 commit comments