-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (32 loc) · 1.11 KB
/
makefile
File metadata and controls
40 lines (32 loc) · 1.11 KB
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
help:
@awk -F ':|##' '/^[^\t].+:.*##/ { printf "\033[36mmake %-28s\033[0m -%s\n", $$1, $$NF }' $(MAKEFILE_LIST) | sort
PHONY: build-image
build-image: .build-image ## build image
PHONY: run-manager
run-manager: .build-session-manager-dev .build-myapp-run ## start manager compose dev stack
docker compose -f session-manager/compose-manager-dev.yml up
PHONY: run-app
run-app: .build-myapp-dev ## run single instance of MyApp (debug port 9230)
cd myapp && \
docker run --rm --name myapp-dev \
-p 9230:9229 \
-p 10010:10010 \
-v .:/app myapp-dev \
node --inspect=0.0.0.0:9229 --nolazy ./.dist/myapp/my-app.js session-id=10 port=10010
PHONY: npm-install
npm-install: ## npm install
cd myapp && npm install
cd session-manager && npm install
.build-myapp-dev:
cd myapp && \
tsc && \
docker build -f dockerfile-dev -t myapp-dev .
.build-myapp-run:
cd myapp && \
tsc && \
docker build -f dockerfile-run -t myapp-run .
.build-session-manager-dev:
cd session-manager && \
npm run build && \
docker build -f dockerfile-dev -t manager-dev .
.build-image: .build-myapp-dev .build-myapp-run .build-session-manager-dev