-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (62 loc) · 2.14 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# build base image
IMAGE=$(shell printf 'aic' | xxd -p)
up:
docker compose up dev -d
@code --folder-uri vscode-remote://attached-container+$(IMAGE)/aichallenge/workspace/ -d
@echo ">> entering container with tmux..."
@docker exec -it aic /usr/bin/tmux
docker compose down
gpu-up:
docker compose -f ./docker-compose.yml -f ./docker/nvidia.yml up dev -d
@code --folder-uri vscode-remote://attached-container+$(IMAGE)/aichallenge/workspace/ -d
@echo ">> entering container with tmux..."
@docker exec -it aic /usr/bin/tmux
docker compose down
gpu-up-sa:
docker compose -f ./docker-compose.yml -f ./docker/nvidia.yml up dev
code:
@code --folder-uri vscode-remote://attached-container+$(IMAGE)/aichallenge/workspace/ -d
up-livox:
docker compose -f ./docker-compose.livox.yml up
up-eval:
docker compose up eval -d
@echo ">> entering container with tmux..."
@docker exec -it aic /usr/bin/tmux
docker compose down
zenoh:
docker compose -f ./docker-compose.yml -f ./docker/nvidia.yml up dev -d
# @gnome-terminal -- docker exec -it aic /usr/bin/tmux
@../aichallenge-2024/remote/network_setting.bash
@bash -c 'trap "docker compose down; echo Stopping zenoh...; docker kill zenoh" SIGINT; ../aichallenge-2024/remote/connect_zenoh_static_ip.bash'
down:
docker compose down
build:
docker compose build dev-base
docker compose build dev
build-livox:
mkdir -p ./PCD
mkdir -p ./rosbags
docker compose -f ./docker-compose.livox.yml build
build-eval:
@cd ../aichallenge-2024 \
&& rm ./submit/aichallenge_submit.tar.gz \
&& ./create_submit_file.bash
@mkdir -p ./submit/ \
&& cp ../aichallenge-2024/submit/aichallenge_submit.tar.gz ./submit/
@mkdir -p ./aichallenge/simulator/ \
&& cp -r ../aichallenge-2024/aichallenge/simulator/AWSIM/ ./aichallenge/simulator/
docker compose build eval-base
docker compose build eval
@rm -rf ./submit/
@rm -rf ./aichallenge/
eval:
cd ../aichallenge-2024 \
&& python3 -m venv .venv \
&& . .venv/bin/activate \
&& pip install rocker \
&& rm ./submit/aichallenge_submit.tar.gz \
&& ./create_submit_file.bash \
&& ./docker_build.sh eval \
&& ./docker_run.sh eval cpu
cleanup-images:
./scripts/cleanup_docker_images.bash