Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
cluster/images/hyperkube: install cni plugins v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
squat committed Nov 12, 2017
1 parent c2d7803 commit 1a3af4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cluster/images/hyperkube/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

FROM BASEIMAGE

# Copy calico to cni bin
# Copy CNI binaries
COPY cni-bin/bin/ /opt/cni/bin

# Create symlinks for each hyperkube server
Expand Down
12 changes: 8 additions & 4 deletions cluster/images/hyperkube/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
REGISTRY?=gcr.io/google-containers
ARCH?=amd64
HYPERKUBE_BIN?=_output/dockerized/bin/linux/$(ARCH)/hyperkube
CALICO_RELEASE=v1.11.0
CNI_RELEASE=v0.6.0

BASEIMAGE=gcr.io/google-containers/debian-hyperkube-base-$(ARCH):0.4.1
TEMP_DIR:=$(shell mktemp -d -t hyperkubeXXXXXX)

all: build

build: calico
build: cni

ifndef VERSION
$(error VERSION is undefined)
Expand All @@ -51,9 +53,11 @@ ifeq ($(ARCH),amd64)
gcloud docker -- push ${REGISTRY}/hyperkube:${VERSION}
endif

calico:
cni:
mkdir -p ${TEMP_DIR}/cni-bin/bin
curl -sSL --retry 5 -o ${TEMP_DIR}/cni-bin/bin/calico https://github.com/projectcalico/calico-cni/releases/download/v1.11.0/calico
curl -sSL --retry 5 https://github.com/containernetworking/cni/releases/download/${CNI_RELEASE}/cni-${ARCH}-${CNI_RELEASE}.tgz | tar -xz -C ${TEMP_DIR}/cni-bin/bin
curl -sSL --retry 5 https://github.com/containernetworking/plugins/releases/download/${CNI_RELEASE}/cni-plugins-${ARCH}-${CNI_RELEASE}.tgz | tar -xz -C ${TEMP_DIR}/cni-bin/bin
curl -sSL --retry 5 -o ${TEMP_DIR}/cni-bin/bin/calico https://github.com/projectcalico/calico-cni/releases/download/${CALICO_RELEASE}/calico
chmod +x ${TEMP_DIR}/cni-bin/bin/calico

.PHONY: build push all calico
.PHONY: build push all cni

0 comments on commit 1a3af4f

Please sign in to comment.