Skip to content

Commit b2fcd0a

Browse files
authored
Merge pull request #13227 from afbjorklund/cri-dockerd-kic
KIC: Add building of cri-dockerd
2 parents f213bc2 + 2bd63b5 commit b2fcd0a

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

deploy/kicbase/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ WORKDIR /src
2525
ADD . .
2626
RUN cd ./cmd/auto-pause/ && go build
2727

28+
# cri-dockerd static
29+
FROM golang:1.16
30+
RUN git clone -n https://github.com/Mirantis/cri-dockerd && \
31+
cd cri-dockerd && git checkout 542e27dee12db61d6e96d2a83a20359474a5efa2 && \
32+
cd src && env CGO_ENABLED=0 go build -o cri-dockerd
33+
2834
# start from ubuntu 20.04, this image is reasonably small as a starting point
2935
# for a kubernetes node image, it doesn't contain much we don't need
3036
FROM ubuntu:focal-20210401
@@ -40,6 +46,9 @@ COPY deploy/kicbase/11-tcp-mtu-probing.conf /etc/sysctl.d/11-tcp-mtu-probing.con
4046
COPY deploy/kicbase/clean-install /usr/local/bin/clean-install
4147
COPY deploy/kicbase/entrypoint /usr/local/bin/entrypoint
4248
COPY --from=0 /src/cmd/auto-pause/auto-pause /bin/auto-pause
49+
COPY --from=1 /go/cri-dockerd/src/cri-dockerd /usr/bin/cri-dockerd
50+
COPY --from=1 /go/cri-dockerd/packaging/systemd/cri-docker.service /usr/lib/systemd/system/cri-docker.service
51+
COPY --from=1 /go/cri-dockerd/packaging/systemd/cri-docker.socket /usr/lib/systemd/system/cri-docker.socket
4352

4453
# Install dependencies, first from apt, then from release tarballs.
4554
# NOTE: we use one RUN to minimize layers.

pkg/drivers/kic/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import (
2424

2525
const (
2626
// Version is the current version of kic
27-
Version = "v0.0.28-1639515145-13124"
27+
Version = "v0.0.28-1640212998-13227"
2828
// SHA of the kic base image
29-
baseImageSHA = "50a7fba584fcd78435535ec8407fa75d58db1612175b13fd473300d522f7ac80"
29+
baseImageSHA = "be897edc9ed473a9678010f390a0092f488f6a1c30865f571c3b6388f9f56f9b"
3030
// The name of the GCR kicbase repository
3131
gcrRepo = "gcr.io/k8s-minikube/kicbase-builds"
3232
// The name of the Dockerhub kicbase repository

site/content/en/docs/commands/start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ minikube start [flags]
2626
--apiserver-names strings A set of apiserver names which are used in the generated certificate for kubernetes. This can be used if you want to make the apiserver available from outside the machine
2727
--apiserver-port int The apiserver listening port (default 8443)
2828
--auto-update-drivers If set, automatically updates drivers to the latest version. Defaults to true. (default true)
29-
--base-image string The base image to use for docker/podman drivers. Intended for local development. (default "gcr.io/k8s-minikube/kicbase-builds:v0.0.28-1639515145-13124@sha256:50a7fba584fcd78435535ec8407fa75d58db1612175b13fd473300d522f7ac80")
29+
--base-image string The base image to use for docker/podman drivers. Intended for local development. (default "gcr.io/k8s-minikube/kicbase-builds:v0.0.28-1640212998-13227@sha256:be897edc9ed473a9678010f390a0092f488f6a1c30865f571c3b6388f9f56f9b")
3030
--cache-images If true, cache docker images for the current bootstrapper and load them into the machine. Always false with --driver=none. (default true)
3131
--cert-expiration duration Duration until minikube certificate expiration, defaults to three years (26280h). (default 26280h0m0s)
3232
--cni string CNI plug-in to use. Valid options: auto, bridge, calico, cilium, flannel, kindnet, or path to a CNI manifest (default: auto)

0 commit comments

Comments
 (0)