Move custom images out of contrib

This commit is contained in:
bprashanth 2017-01-31 10:19:58 -08:00
parent 3e87a2de40
commit d002ca2f5e
12 changed files with 435 additions and 0 deletions

21
images/ubuntu-slim/Makefile Executable file
View file

@ -0,0 +1,21 @@
all: push
TAG ?= 0.6
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)