@@ -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.14 -gcc-al2 as rpm-provider
31
+ FROM public.ecr.aws/eks-distro-build-tooling/python:3.11 -gcc-al23 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,28 +55,30 @@ 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.14-al2 as rpm-installer
58
+ FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-python-builder:3.11-al23 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 && \
65
66
install_binary \
66
67
/usr/bin/cat \
67
68
/usr/bin/cd \
68
69
/usr/bin/df \
69
70
/usr/bin/env \
70
71
/usr/bin/find \
71
72
/usr/bin/grep \
73
+ /usr/bin/ln \
72
74
/usr/bin/ls \
73
75
/usr/bin/mount \
74
76
/usr/bin/umount \
75
77
/sbin/mount.nfs4 \
76
78
/usr/bin/openssl \
77
79
/usr/bin/sed \
78
80
/usr/bin/stat \
79
- /usr/bin/stunnel5 \
81
+ /usr/bin/stunnel \
80
82
/usr/sbin/tcpdump \
81
83
/usr/bin/which && \
82
84
cleanup "efs-csi"
@@ -88,12 +90,15 @@ RUN clean_install amazon-efs-utils true && \
88
90
# Those static files need to be copied back to the config directory when the driver starts up.
89
91
RUN mv /newroot/etc/amazon/efs /newroot/etc/amazon/efs-static-files
90
92
91
- FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-python:3.9.14-al2 AS linux-amazon
93
+ FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-python:3.11-al23 AS linux-amazon
92
94
93
95
COPY --from=rpm-installer /newroot /
94
- COPY --from=rpm-provider /root/.local/lib/python3.9 /site-packages/ /usr/lib/python3.9 /site-packages/
96
+ COPY --from=rpm-provider /root/.local/lib/python3.11 /site-packages/ /usr/lib/python3.11 /site-packages/
95
97
96
98
COPY --from=go-builder /go/src/github.com/kubernetes-sigs/aws-efs-csi-driver/bin/aws-efs-csi-driver /bin/aws-efs-csi-driver
97
99
COPY THIRD-PARTY /
98
100
101
+ # Create a symbolic link for stunnel5 to stunnel (for backward compatibility)
102
+ RUN if [ -f /usr/bin/stunnel ]; then ln -s /usr/bin/stunnel /usr/bin/stunnel5; fi
103
+
99
104
ENTRYPOINT ["/bin/aws-efs-csi-driver" ]
0 commit comments