Use a random tag for Debian kernel build base

To store all the old images they need a different tag, so use a
random one.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-09-12 12:06:24 +01:00
parent 145dead110
commit 955aad6276
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,11 @@
BASE=debian:jessie
IMAGE=debian-build-kernel
TAG := $(shell cat /dev/urandom | od -N6 -t x2 | head -n1 | cut -b9- | sed 's/ //g')
push:
docker pull $(BASE)
tar cf - Dockerfile | docker build --no-cache -t mobylinux/$(IMAGE):latest -
tar cf - Dockerfile | docker build --no-cache -t mobylinux/$(IMAGE):$(TAG) -
docker tag mobylinux/$(IMAGE):$(TAG) mobylinux/$(IMAGE):latest
docker push mobylinux/$(IMAGE):$(TAG)
docker push mobylinux/$(IMAGE):latest

View File

@ -1,4 +1,4 @@
FROM mobylinux/debian-build-kernel@sha256:412d36481df6123efc9a5a51656e13164f8178d11d682c63de8de82d43abd0d2
FROM mobylinux/debian-build-kernel:a009a11bf0ad
ARG KERNEL_VERSION=4.4.20
ARG DEBUG=0