2017-09-19 18:55:07 +00:00
|
|
|
NS ?= andrey01
|
|
|
|
NAME ?= rainloop
|
2017-12-12 23:19:57 +00:00
|
|
|
VERSION ?= 1.11.3
|
2017-09-19 18:55:07 +00:00
|
|
|
|
|
|
|
default: build
|
|
|
|
|
|
|
|
build:
|
2017-12-12 23:19:57 +00:00
|
|
|
docker build --pull -t $(NS)/$(NAME):$(VERSION) -f Dockerfile .
|
2017-09-19 18:55:07 +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-12 23:19:57 +00:00
|
|
|
docker rmi $(NS)/$(NAME):$(VERSION)
|