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

Commit

Permalink
Merge pull request #179 from coreos/v1.8.3-patchset
Browse files Browse the repository at this point in the history
V1.8.3 patchset
  • Loading branch information
squat committed Nov 13, 2017
2 parents f0efb3c + 1a3af4f commit f96beb2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cluster/images/hyperkube/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

FROM BASEIMAGE

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

# Create symlinks for each hyperkube server
# Also create symlinks to /usr/local/bin/ where the server image binaries live, so the hyperkube image may be
# used instead of gcr.io/google_containers/kube-* without any modifications.
Expand Down
13 changes: 11 additions & 2 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:
build: cni

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

.PHONY: build push all
cni:
mkdir -p ${TEMP_DIR}/cni-bin/bin
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 cni

0 comments on commit f96beb2

Please sign in to comment.