blob: 8fb4d043c34a1d00cb8f0a4465d577206f4a9373 [file] [log] [blame]
NO_CACHE=false
PREFIX=gerritforge
IMAGE=${PREFIX}/bazel-cache
CACHE_ALLOW=0.0.0.0/0
# Targets
build:
docker build --no-cache=$(NO_CACHE) -t ${IMAGE} .
publish:
docker push ${IMAGE}
clean:
docker rmi -f ${IMAGE}
start:
docker run --rm -d -e NGINX_WEBDAV_ALLOW=${CACHE_ALLOW} --net=host --name bazel_cache ${IMAGE}
stop:
docker kill bazel_cache
.PHONY: clean image publish start stop