From 789a907f8b4389a2a47884b29546e590f88b564b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Mon, 20 Jul 2020 18:21:54 +0200 Subject: [PATCH 1/3] Downgrade kicbase podman to 1.9.3 for build cmd --- hack/images/kicbase.Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hack/images/kicbase.Dockerfile b/hack/images/kicbase.Dockerfile index 1df3b5c9345e..03523222020e 100644 --- a/hack/images/kicbase.Dockerfile +++ b/hack/images/kicbase.Dockerfile @@ -23,7 +23,10 @@ RUN sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/lib apt-get install -y --no-install-recommends cri-o-1.17 # install podman -RUN apt-get install -y --no-install-recommends podman +RUN sh -c "echo 'deb https://dl.bintray.com/afbjorklund/podman eoan main' > /etc/apt/sources.list.d/podman.list" && \ + curl -L https://bintray.com/user/downloadSubjectPublicKey?username=afbjorklund -o afbjorklund-public.key.asc && \ + apt-key add - < afbjorklund-public.key.asc && apt-get update && \ + apt-get install -y --no-install-recommends podman=1.9.3~1 # install varlink RUN apt-get install -y --no-install-recommends varlink From 4e4dcbbe805db2e48b53219fa115aa25c3470231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Mon, 20 Jul 2020 18:22:34 +0200 Subject: [PATCH 2/3] Make the kicbase image build by updating dnsutils --- hack/images/kicbase.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/images/kicbase.Dockerfile b/hack/images/kicbase.Dockerfile index 03523222020e..c94eca8a0b8d 100644 --- a/hack/images/kicbase.Dockerfile +++ b/hack/images/kicbase.Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ sudo=1.8.27-1ubuntu4.1 \ docker.io=19.03.2-0ubuntu1 \ openssh-server=1:8.0p1-6build1 \ - dnsutils=1:9.11.5.P4+dfsg-5.1ubuntu2.1 \ + dnsutils=1:9.11.5.P4+dfsg-5.1ubuntu2.2 \ # libglib2.0-0 is required for conmon, which is required for podman libglib2.0-0=2.62.1-1 \ && rm /etc/crictl.yaml From 0735629741f2fe27b47af11b02775e29f424930c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Mon, 20 Jul 2020 18:22:55 +0200 Subject: [PATCH 3/3] Make the kicbase image build context much smaller --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d059bfc458f9..f5e136f70a71 100644 --- a/Makefile +++ b/Makefile @@ -532,7 +532,7 @@ storage-provisioner-image: out/storage-provisioner-$(GOARCH) ## Build storage-pr .PHONY: kic-base-image kic-base-image: ## builds the base image used for kic. docker rmi -f $(REGISTRY)/kicbase:$(KIC_VERSION)-snapshot || true - docker build -f ./hack/images/kicbase.Dockerfile -t $(REGISTRY)/kicbase:$(KIC_VERSION)-snapshot --build-arg COMMIT_SHA=${VERSION}-$(COMMIT) --cache-from $(REGISTRY)/kicbase:$(KIC_VERSION) --target base . + docker build -f ./hack/images/kicbase.Dockerfile -t $(REGISTRY)/kicbase:$(KIC_VERSION)-snapshot --build-arg COMMIT_SHA=${VERSION}-$(COMMIT) --cache-from $(REGISTRY)/kicbase:$(KIC_VERSION) --target base ./hack/images .PHONY: upload-preloaded-images-tar upload-preloaded-images-tar: out/minikube # Upload the preloaded images for oldest supported, newest supported, and default kubernetes versions to GCS.