Move custom images out of contrib
This commit is contained in:
parent
3e87a2de40
commit
d002ca2f5e
12 changed files with 435 additions and 0 deletions
21
images/ubuntu-slim/Makefile
Executable file
21
images/ubuntu-slim/Makefile
Executable 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue