Skip to content

Commit 0732a59

Browse files
Merge remote-tracking branch 'origin/master-candidate' into master-candidate
2 parents 4161faf + 499b0fc commit 0732a59

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
FROM alpine:3.21 AS builder
22

3+
34
RUN apk update && apk add curl
45

56
RUN export ARCH=$([[ "$(uname -m)" == "aarch64" ]] && echo "arm64" || echo "amd64") && \
67
mkdir -p /tmp/kubectl-versions && cd /tmp/kubectl-versions && \
78
curl -o kubectl1.32 -L https://storage.googleapis.com/kubernetes-release/release/v1.32.0/bin/linux/${ARCH}/kubectl
89

9-
FROM debian:bullseye-slim
10+
11+
FROM debian:bookworm-20240812-slim
12+
1013

1114
RUN apt-get update -y && \
1215
apt-get upgrade && \
1316
apt-get install busybox -y && \
1417
ln -s /bin/busybox /usr/bin/[[
1518

16-
RUN adduser --gecos "" --disabled-password --home /home/cfu --shell /bin/bash cfu
1719

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
1921

2022
#copy all versions of kubectl to switch between them later.
2123
COPY --chown=cfu --chmod=775 --from=builder /tmp/kubectl-versions/* /usr/local/bin/

cf-deploy-kubernetes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ kubectl --context "${KUBECONTEXT}" --namespace "${KUBERNETES_NAMESPACE}" $KUBECT
105105
if [ -n "$DEPLOYMENT_NAME" ]; then
106106
echo "---> Waiting for a successful deployment/${DEPLOYMENT_NAME} status to namespace ${KUBERNETES_NAMESPACE} ..."
107107
timeout -s SIGTERM $KUBERNETES_DEPLOYMENT_TIMEOUT kubectl --context "${KUBECONTEXT}" --namespace "${KUBERNETES_NAMESPACE}" rollout status deployment/"${DEPLOYMENT_NAME}" || fatal "Deployment Failed"
108-
fi
108+
fi

0 commit comments

Comments
 (0)