Skip to content

Commit

Permalink
Merge pull request #1598 from DSD-DBS/https-kubectl
Browse files Browse the repository at this point in the history
build: Enforce HTTPS while installing `kubectl` in Docker
  • Loading branch information
MoritzWeber0 authored Jun 3, 2024
2 parents 788165e + d73fce0 commit c599896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ARG KUBECTL_APT_REMOTE=https://pkgs.k8s.io/core:/stable:/v1.29/deb/
# Install kubectl if not available in base image
# kubectl is needed for the list files endpoint
RUN mkdir -p /etc/apt/keyrings && \
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg && \
curl --proto "=https" -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] $KUBECTL_APT_REMOTE /" | tee /etc/apt/sources.list.d/kubernetes.list && \
apt-get update && apt-get install -y kubectl && rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit c599896

Please sign in to comment.