-
Notifications
You must be signed in to change notification settings - Fork 75
/
Makefile
34 lines (25 loc) · 874 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
31
32
33
34
build:
docker build --target app_setup --platform linux/$$(uname -m | sed 's/arm64/arm64/g' | sed 's/x86_64/amd64/g') -t yangsuite-one-container .
run:
docker run -itd --name yangsuite-one-container -v ./certificate:/certificate -v yangsuite-one-container-data:/ys-data --memory 4096m --memory-swap 4096m -p 8480:8480 -p 57500:57500 -p 57501:57501 -u root yangsuite-one-container
start:
docker start yangsuite-one-container
stop:
docker stop yangsuite-one-container
rm:
-docker rm -f yangsuite-one-container
rm-volume:
-docker volume rm yangsuite-one-container-data
follow:
docker logs --follow yangsuite-one-container
debug:
docker exec -it yangsuite-one-container sh -c '/build-assets/monitor_logs.sh'
cli:
docker exec -it yangsuite-one-container /bin/bash
dev:
$(MAKE) rm
$(MAKE) rm-volume
$(MAKE) build
$(MAKE) run
$(MAKE) follow
# $(MAKE) debug