Skip to content

Commit 978f8b7

Browse files
authored
fix(ci): update Dockerfile to al2023 and use latest python3 (#704)
* feat: update docker python3 version to be compatible with latest GCLOUD_SDK * pin to older version of gcloud sdk * pin gcloud-sdk to a version before python3.8 was deprecated * reduce max build jobs to not run into space issues on ci * aggressive clean up * revert dockerfile changes * upgrade to al2023 and use latest python * update to pytohn 3.13
1 parent 0307f34 commit 978f8b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM public.ecr.aws/amazonlinux/amazonlinux:2 AS builder
1+
FROM public.ecr.aws/amazonlinux/amazonlinux:2023 AS builder
22
ARG TARGETOS
33
ARG TARGETARCH
4-
RUN yum install -y git tar gzip make unzip gcc rsync wget jq curl
4+
RUN dnf install -y git tar gzip make unzip gcc rsync wget jq
55
ARG GO_MINOR_VERSION=1.25
66
RUN curl https://go.dev/dl/?mode=json | jq -r .[].version | grep "^go${GO_MINOR_VERSION}" | head -n1 > go-version.txt
77
RUN wget -O go.tar.gz https://go.dev/dl/$(cat go-version.txt).${TARGETOS}-${TARGETARCH}.tar.gz && \
@@ -20,16 +20,16 @@ RUN go install sigs.k8s.io/kubetest2 && \
2020
go install sigs.k8s.io/kubetest2/kubetest2-tester-exec && \
2121
go install sigs.k8s.io/kubetest2/kubetest2-tester-ginkgo
2222

23-
FROM public.ecr.aws/amazonlinux/amazonlinux:2
23+
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
2424
ARG TARGETOS
2525
ARG TARGETARCH
2626
WORKDIR /workdir
27-
RUN yum install -y tar gzip unzip wget openssh
27+
RUN dnf install -y tar gzip unzip wget openssh
2828
RUN wget -O awscli.zip https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip && \
2929
unzip awscli.zip && \
3030
./aws/install
3131
# we need gsutil from the gcloud CLI for kubetest-tester-ginkgo
32-
RUN amazon-linux-extras install python3.8
32+
RUN dnf install -y python3.13
3333
ARG GCLOUD_SDK_URL=https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz
3434
RUN wget -O google-cloud-sdk.tar.gz -q $GCLOUD_SDK_URL && \
3535
tar xzf google-cloud-sdk.tar.gz -C / && \

0 commit comments

Comments
 (0)