-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (39 loc) · 1.35 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
48
49
50
51
52
53
54
55
56
MANAGER_VERSION=0.10
GATEWAY_VERSION=2.0.0
build: build-tensorboard build-app
build-app: build-gateway build-manager
build-tensorboard:
docker build -t tensorboard tensorboard
build-gateway-debug:
cd cloudsimplus-gateway && ./gradlew build --warning-mode all -Dlog.level=DEBUG
cd cloudsimplus-gateway && ./gradlew dockerBuildImage
build-gateway:
cd cloudsimplus-gateway && ./gradlew build --warning-mode all -Dlog.level=${LOG_LEVEL}
cd cloudsimplus-gateway && ./gradlew dockerBuildImage
build-manager:
docker build -t manager:${MANAGER_VERSION} rl-manager
run-tensorboard:
docker run --rm --name tensorboard -d -v ./logs/:/logs/ -p 80:6006 tensorboard
run-cpu:
scripts/run_docker_cpu.sh
run-gpu:
scripts/run_docker_gpu.sh
run-cpu-attached:
ATTACHED=true scripts/run_docker_cpu.sh
run-gpu-attached:
ATTACHED=true scripts/run_docker_gpu.sh
clean-gateway:
cd cloudsimplus-gateway && ./gradlew clean
wipe-logs:
cd logs && rm -rf *
stop:
docker compose down --remove-orphans
docker system prune -f
docker system prune --volumes -f
get-gradle:
cd cloudsimplus-gateway && ./gradlew wrapper --gradle-version=${GRADLE_VERSION} --distribution-type=bin
clear-gradle:
cd ~/.gradle && rm -rf *
.PHONY: build build-compose-images build-tensorboard build-gateway \
build-manager upgrade-gradle run-tensorboard run-cpu \
run-gpu clean-gateway wipe-logs stop