-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
30 lines (22 loc) · 878 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CHART_PATH=infrastructure/helm/conformal-data-cleaning
check-docker-prerequisites:
ifndef DOCKER_IMAGE_NAME
$(error DOCKER_IMAGE_NAME is not set)
endif
build-docker: check-docker-prerequisites
poetry build
rm -rf garf/dist
mv dist garf/dist
docker build -t ${DOCKER_IMAGE_NAME}:final -f infrastructure/docker/Dockerfile .
docker build -t ${DOCKER_IMAGE_NAME}:garf -f infrastructure/docker/Dockerfile.garf garf
push-docker: check-docker-prerequisites
docker push ${DOCKER_IMAGE_NAME}:final
docker push ${DOCKER_IMAGE_NAME}:garf
docker: build-docker push-docker
helm-delete:
# ignoring error as long as it does not exist
-helm delete $(shell helm list --filter conformal-data-cleaning --short)
-helm delete $(shell helm list --filter conformal-data-cleaning-garf --short)
helm-install:
cd scripts && python deploy_experiments.py
deploy-all: docker helm-install