File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine:3.21 AS builder
2
2
3
+
3
4
RUN apk update && apk add curl
4
5
5
6
RUN export ARCH=$([[ "$(uname -m)" == "aarch64" ]] && echo "arm64" || echo "amd64" ) && \
6
7
mkdir -p /tmp/kubectl-versions && cd /tmp/kubectl-versions && \
7
8
curl -o kubectl1.32 -L https://storage.googleapis.com/kubernetes-release/release/v1.32.0/bin/linux/${ARCH}/kubectl
8
9
9
- FROM debian:bullseye-slim
10
+
11
+ FROM debian:bookworm-20240812-slim
12
+
10
13
11
14
RUN apt-get update -y && \
12
15
apt-get upgrade && \
13
16
apt-get install busybox -y && \
14
17
ln -s /bin/busybox /usr/bin/[[
15
18
16
- RUN adduser --gecos "" --disabled-password --home /home/cfu --shell /bin/bash cfu
17
19
18
- # RUN apt update && apt upgrade && apt install bash # THIS IS NOT REQUIRED. BASH IS ALREADY INCLUDED IN BULLSEYE
20
+ RUN adduser --gecos "" --disabled-password --home /home/cfu --shell /bin/ bash cfu
19
21
20
22
# copy all versions of kubectl to switch between them later.
21
23
COPY --chown=cfu --chmod=775 --from=builder /tmp/kubectl-versions/* /usr/local/bin/
Original file line number Diff line number Diff line change @@ -105,4 +105,4 @@ kubectl --context "${KUBECONTEXT}" --namespace "${KUBERNETES_NAMESPACE}" $KUBECT
105
105
if [ -n " $DEPLOYMENT_NAME " ]; then
106
106
echo " ---> Waiting for a successful deployment/${DEPLOYMENT_NAME} status to namespace ${KUBERNETES_NAMESPACE} ..."
107
107
timeout -s SIGTERM $KUBERNETES_DEPLOYMENT_TIMEOUT kubectl --context " ${KUBECONTEXT} " --namespace " ${KUBERNETES_NAMESPACE} " rollout status deployment/" ${DEPLOYMENT_NAME} " || fatal " Deployment Failed"
108
- fi
108
+ fi
You can’t perform that action at this time.
0 commit comments