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 #182 from coreos/v1.6.13-patchset
Browse files Browse the repository at this point in the history
V1.6.13 patchset
  • Loading branch information
squat authored Nov 26, 2017
2 parents 14ea65f + 775818f commit d38c047
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cluster/images/hyperkube/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update -y \
nfs-common \
glusterfs-client \
cifs-utils \
ceph-common \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get autoremove -y \
&& DEBIAN_FRONTEND=noninteractive apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # CACHEBUST
Expand Down Expand Up @@ -90,3 +91,6 @@ RUN ln -s /hyperkube /apiserver \

# Copy the hyperkube binary
COPY hyperkube /hyperkube

# Add CAP_NET_BIND_SERVICE to hyperkube so it can bind privileged ports as non-root.
RUN setcap cap_net_bind_service=+ep /hyperkube
2 changes: 2 additions & 0 deletions cluster/images/hyperkube/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ else
endif
# Download CNI
curl -sSL --retry 5 https://storage.googleapis.com/kubernetes-release/network-plugins/cni-${ARCH}-${CNI_RELEASE}.tar.gz | tar -xz -C ${TEMP_DIR}/cni-bin
curl -sSL --retry 5 -o ${TEMP_DIR}/cni-bin/bin/calico https://github.com/projectcalico/calico-cni/releases/download/v1.11.0/calico
chmod +x ${TEMP_DIR}/cni-bin/bin/calico

docker build --pull -t ${REGISTRY}/hyperkube-${ARCH}:${VERSION} ${TEMP_DIR}
rm -rf "${TEMP_DIR}"
Expand Down

0 comments on commit d38c047

Please sign in to comment.