Files
linuxkit/pkg/init-container/Makefile
Justin Cormack 0e65f04ab4 update init for containers for recent changes
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-08-10 14:57:53 +01:00

19 lines
431 B
Makefile

.PHONY: tag push
default: push
ORG?=mobytest
IMAGE=init-container
DEPS=Dockerfile $(wildcard etc/init.d/*) $(wildcard bin/*)
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
tag: $(DEPS)
docker build --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
push: tag
docker pull $(ORG)/$(IMAGE):$(HASH) || \
docker push $(ORG)/$(IMAGE):$(HASH)
forcepush: tag
docker push $(ORG)/$(IMAGE):$(HASH)