Skip to content

Commit 01c3e69

Browse files
committed
node-installer (WIP): remove existing repo configs to avoid conflicts
Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
1 parent cc2e3de commit 01c3e69

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

node-installer/tests/Dockerfile.minikube-custom

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ FROM gcr.io/k8s-minikube/kicbase:v0.0.46@sha256:fd2d445ddcc33ebc5c6b68a17e6219ea
22

33
RUN apt-get update -y || true && \
44
apt-get -y install wget curl apt-transport-https ca-certificates gnupg2 && \
5+
6+
# Remove existing repository configurations to avoid conflicts
7+
rm -f /etc/apt/sources.list.d/devel:kubic:*.list && \
8+
59
mkdir -p /etc/apt/keyrings && \
610
curl -fsSL "https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/Release.key" | gpg --dearmor > /etc/apt/keyrings/libcontainers-stable.gpg && \
711
curl -fsSL "https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.24/xUbuntu_22.04/Release.key" | gpg --dearmor > /etc/apt/keyrings/crio-stable.gpg && \
8-
echo "deb [signed-by=/etc/apt/keyrings/libcontainers-stable.gpg] https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list && \
9-
echo "deb [signed-by=/etc/apt/keyrings/crio-stable.gpg] https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.24/xUbuntu_22.04/ /" > /etc/apt/sources.list.d/devel:kubic:libcontainers:cri-o:stable.list && \
12+
echo "deb [signed-by=/etc/apt/keyrings/libcontainers-stable.gpg] https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/ /" > /etc/apt/sources.list.d/devel-kubic-libcontainers-stable.list && \
13+
echo "deb [signed-by=/etc/apt/keyrings/crio-stable.gpg] https://downloadcontent.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.24/xUbuntu_22.04/ /" > /etc/apt/sources.list.d/devel-kubic-libcontainers-crio-stable.list && \
1014
apt-get update -y || true

0 commit comments

Comments
 (0)