Rebase kube-proxy and debian-iptables on debian-base

This commit is contained in:
Tim St. Clair
2017-02-24 17:09:07 -08:00
parent 6d9e2afeda
commit 8a5314fb6d
3 changed files with 13 additions and 22 deletions

View File

@@ -18,11 +18,7 @@ FROM BASEIMAGE
# If we're building normally, for amd64, CROSS_BUILD lines are removed
CROSS_BUILD_COPY qemu-ARCH-static /usr/bin/
# All apt-get's must be in one run command or the
# cleanup has no effect.
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
RUN clean-install \
iptables \
ebtables \
conntrack \
&& rm -rf /var/lib/apt/lists/*
conntrack

View File

@@ -14,33 +14,28 @@
.PHONY: build push
REGISTRY?="gcr.io/google_containers"
REGISTRY?="gcr.io/google-containers"
IMAGE=debian-iptables
TAG=v6
TAG=v7
ARCH?=amd64
TEMP_DIR:=$(shell mktemp -d)
QEMUVERSION=v2.7.0
ifeq ($(ARCH),amd64)
BASEIMAGE?=debian:jessie
endif
ifeq ($(ARCH),arm)
BASEIMAGE?=armhf/debian:jessie
QEMUARCH=arm
endif
ifeq ($(ARCH),arm64)
BASEIMAGE?=aarch64/debian:jessie
QEMUARCH=aarch64
endif
ifeq ($(ARCH),ppc64le)
BASEIMAGE?=ppc64le/debian:jessie
QEMUARCH=ppc64le
endif
ifeq ($(ARCH),s390x)
BASEIMAGE?=s390x/debian:jessie
QEMUARCH=s390x
endif
BASEIMAGE=gcr.io/google-containers/debian-base-$(ARCH):0.1
build:
cp ./* $(TEMP_DIR)
cd $(TEMP_DIR) && sed -i "s|BASEIMAGE|$(BASEIMAGE)|g" Dockerfile