-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (29 loc) · 1.03 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
VERSION=0.1.3
CR_USER ?= umonkey
help:
@echo "Development steps:"
@echo ""
@echo "make build -- compile backend and frontend"
@echo "make build-backend-docker -- build the backend image"
@echo "make lint -- run linters for both backend and frontend"
@echo "make serve -- run the remote Docker image"
@echo "make serve-local -- run the local Docker image"
@echo ""
@echo "Release steps:"
@echo ""
@echo "make build-image -- build the Docker image"
@echo "make cr-login -- log in to the container repository"
@echo "make publish-image -- publish the Docker image at ghcr.io"
build:
make -C backend build
make -C frontend build
image-shell:
docker run -it --rm -w /app treemap:$(VERSION) sh
lint:
make -C backend lint
make -C frontend lint
serve:
docker run -it --rm -v $(PWD)/var:/app/var -p 8001:8000 ghcr.io/$(CR_USER)/treemap:$(VERSION)
serve-local:
mkdir -p var
docker run -it --rm -v $(PWD)/var:/app/var -p 8001:8000 treemap:$(VERSION)