2017-09-19 22:26:24 +00:00
|
|
|
NS ?= andrey01
|
|
|
|
NAME ?= taiga
|
2017-12-13 00:31:31 +00:00
|
|
|
VERSION ?= 3.1.0
|
2017-09-19 22:26:24 +00:00
|
|
|
|
|
|
|
default: build
|
|
|
|
|
|
|
|
build:
|
2017-12-13 00:31:31 +00:00
|
|
|
docker build --pull -t $(NS)/$(NAME):$(VERSION) -f Dockerfile .
|
2017-09-19 22:26:24 +00:00
|
|
|
|
|
|
|
publish:
|
|
|
|
docker push $(NS)/$(NAME):$(VERSION)
|
|
|
|
|
|
|
|
check:
|
|
|
|
docker run --rm -i $(NS)/$(NAME):$(VERSION) sh -c "set -x; exit 0"
|
|
|
|
|
|
|
|
console:
|
|
|
|
docker run --rm -ti --entrypoint sh $(NS)/$(NAME):$(VERSION)
|
|
|
|
|
|
|
|
clean:
|
2017-12-13 00:31:31 +00:00
|
|
|
docker rmi $(NS)/$(NAME):$(VERSION)
|