forked from suyambutriveni/objectiv-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (32 loc) · 1.28 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: all build-all-images
# default tag, used to tag images
# default tag is current date
TAG ?= $(shell date +%Y%m%d)
# by default we build all images
all: build-all-images
# what to build
build-all-images: build-docker-backend-image-local build-docker-notebook-image-local
## build backend images
build-docker-backend-image-local:
cd backend && make docker-image-local
build-docker-backend-image:
cd backend&& make docker-image
build-docker-notebook-image-local:
cd notebooks && docker build -t objectiv/notebook:${TAG} -f docker/Dockerfile .
build-docker-notebook-image:
cd notebooks && docker buildx build --pull --rm --no-cache --output type=image,push=true \
--platform=linux/arm64,linux/amd64 --tag objectiv/notebook:${TAG} -f docker/Dockerfile .
build-docker-validation-image-local:
cd schema && docker build -t objectiv/validator:${TAG} -f docker/validator/Dockerfile .
build-docker-validation-image:
cd schema && docker buildx build --pull --rm --no-cache --output type=image,push=true \
--platform=linux/arm64,linux/amd64 --tag objectiv/validator:${TAG} -f docker/validator/Dockerfile .
publish-tracker:
cd tracker && make publish
# control stack through docker-compose
start:
docker-compose up -d
stop:
docker-compose down
update:
docker-compose up -d --no-deps