github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/deploy/prod/k8s/aisnode_container/Makefile (about) 1 # 2 # Usage: 3 # $ env IMAGE_TAG=3.3 make -e all 4 # $ env IMAGE_TAG=3.3 make -e all_debug 5 # $ env IMAGE_REPO=docker.io/aistorage/admin IMAGE_TAG=4.0 make -e all 6 # 7 8 REGISTRY_URL ?= docker.io 9 IMAGE_REPO=aistorage/aisnode 10 IMAGE_TAG=.must_set_in_environment 11 12 DOCKER=docker 13 14 build: 15 $(DOCKER) build --quiet \ 16 -f Dockerfile \ 17 -t $(REGISTRY_URL)/$(IMAGE_REPO):$(IMAGE_TAG) \ 18 --build-arg providers=$(AIS_BACKEND_PROVIDERS) \ 19 "../../../../." 20 21 build_debug: 22 $(DOCKER) build --quiet \ 23 -f Dockerfile \ 24 -t $(REGISTRY_URL)/$(IMAGE_REPO):$(IMAGE_TAG)-debug \ 25 --build-arg mode="debug" --build-arg providers=$(AIS_BACKEND_PROVIDERS) \ 26 "../../../../." 27 28 push: 29 docker push $(REGISTRY_URL)/$(IMAGE_REPO):$(IMAGE_TAG) 30 31 push_debug: 32 docker push $(REGISTRY_URL)/$(IMAGE_REPO):$(IMAGE_TAG)-debug 33 34 all: build push 35 36 all_debug: build_debug push_debug