ingress-nginx-helm/images/ubuntu-slim/Makefile
Manuel de Brito Fontes b22c19309c Release ubuntu-slim 0.7
2017-02-16 10:27:35 -03:00

21 lines
532 B
Makefile
Executable file

all: push
TAG ?= 0.7
PREFIX ?= gcr.io/google_containers/ubuntu-slim
BUILD_IMAGE ?= ubuntu-build
TAR_FILE ?= rootfs.tar
container: clean
docker build --pull -t $(BUILD_IMAGE) -f Dockerfile.build .
docker create --name $(BUILD_IMAGE) $(BUILD_IMAGE)
docker export $(BUILD_IMAGE) > $(TAR_FILE)
docker build --pull -t $(PREFIX):$(TAG) .
push: container
docker push $(PREFIX):$(TAG)
clean:
docker rmi -f $(PREFIX):$(TAG) || true
docker rmi -f $(BUILD_IMAGE) || true
docker rm -f $(BUILD_IMAGE) || true
rm -f $(TAR_FILE)