-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added distributed docker compose files
- Loading branch information
1 parent
a0f4533
commit a890f26
Showing
5 changed files
with
195 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
version: "3" | ||
|
||
services: | ||
flake8: | ||
image: alpine/flake8 | ||
command: . | ||
volumes: | ||
- ../:/apps | ||
|
||
comlipy: | ||
build: docker/comlipy | ||
command: . | ||
volumes: | ||
- ../:/apps | ||
|
||
mdlint: | ||
image: peterdavehello/markdownlint:0.32.2 | ||
command: markdownlint . | ||
volumes: | ||
- ../:/md | ||
|
||
roscore: | ||
image: ros:noetic | ||
command: roscore | ||
environment: | ||
- ROS_MASTER_URI=http://roscore:11311 | ||
- ROS_HOSTNAME=roscore | ||
expose: | ||
- 11311 | ||
networks: | ||
- ros | ||
|
||
agent: | ||
build: | ||
dockerfile: build/docker/agent/Dockerfile | ||
args: | ||
- USER_UID=${DOCKER_HOST_UNIX_UID:-1000} | ||
- USER_GID=${DOCKER_HOST_UNIX_GID:-1000} | ||
context: ../ | ||
init: true | ||
tty: true | ||
shm_size: 2gb | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
capabilities: [ gpu ] | ||
#command: bash -c "sleep 10 && python3 /opt/leaderboard/leaderboard/leaderboard_evaluator.py --debug=0 --routes=/opt/leaderboard/data/routes_devtest.xml --agent=/opt/leaderboard/leaderboard/autoagents/npc_agent.py --host=carla-simulator --track=SENSORS" | ||
command: bash -c "sleep 10 && roslaunch agent/launch/dev.launch" | ||
# command: bash -c "sleep 10 && sudo chown -R carla:carla ../code/ && sudo chmod -R a+w ../code/ && python3 /opt/leaderboard/leaderboard/leaderboard_evaluator.py --debug=0 --routes=/opt/leaderboard/data/routes_devtest.xml --agent=/workspace/code/agent/src/agent/agent.py --host=paf23-carla-simulator-1 --track=MAP" | ||
|
||
logging: | ||
driver: "local" | ||
environment: | ||
- DISPLAY | ||
- NVIDIA_VISIBLE_DEVICES=all | ||
- NVIDIA_DRIVER_CAPABILITIES=all | ||
- ROS_MASTER_URI=http://roscore:11311 | ||
- CARLA_SIM_HOST=<carla-server-ip-address> | ||
- ROS_HOSTNAME=agent | ||
- XDG_RUNTIME_DIR=/tmp/runtime-carla | ||
volumes: | ||
- /tmp/.X11-unix:/tmp/.X11-unix | ||
# if you change the volume here also change the copy command | ||
# in ``build/docker/build/Dockerfile | ||
- ../:/workspace | ||
# mount git config for dvc | ||
- ../.gitconfig:/home/carla/.gitconfig | ||
- ../:/workspace/ | ||
networks: | ||
- carla | ||
- ros | ||
|
||
networks: | ||
carla: | ||
ros: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
version: "3" | ||
|
||
services: | ||
flake8: | ||
image: alpine/flake8 | ||
command: . | ||
volumes: | ||
- ../:/apps | ||
|
||
comlipy: | ||
build: docker/comlipy | ||
command: . | ||
volumes: | ||
- ../:/apps | ||
|
||
mdlint: | ||
image: peterdavehello/markdownlint:0.32.2 | ||
command: markdownlint . | ||
volumes: | ||
- ../:/md | ||
|
||
roscore: | ||
image: ros:noetic | ||
command: roscore | ||
environment: | ||
- ROS_MASTER_URI=http://roscore:11311 | ||
- ROS_HOSTNAME=roscore | ||
expose: | ||
- 11311 | ||
networks: | ||
- ros | ||
|
||
agent: | ||
build: | ||
dockerfile: build/docker/agent/Dockerfile | ||
args: | ||
- USER_UID=${DOCKER_HOST_UNIX_UID:-1000} | ||
- USER_GID=${DOCKER_HOST_UNIX_GID:-1000} | ||
context: ../ | ||
init: true | ||
tty: true | ||
shm_size: 2gb | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
capabilities: [ gpu ] | ||
#command: bash -c "sleep 10 && python3 /opt/leaderboard/leaderboard/leaderboard_evaluator.py --debug=0 --routes=/opt/leaderboard/data/routes_devtest.xml --agent=/opt/leaderboard/leaderboard/autoagents/npc_agent.py --host=carla-simulator --track=SENSORS" | ||
#command: bash -c "sleep 10 && roslaunch agent/launch/dev.launch" | ||
command: bash -c "sleep 10 && sudo chown -R carla:carla ../code/ && sudo chmod -R a+w ../code/ && python3 /opt/leaderboard/leaderboard/leaderboard_evaluator.py --debug=0 --routes=/opt/leaderboard/data/routes_devtest.xml --agent=/workspace/code/agent/src/agent/agent.py --host=<carla-server-ip-address> --track=MAP" | ||
|
||
logging: | ||
driver: "local" | ||
environment: | ||
- DISPLAY | ||
- NVIDIA_VISIBLE_DEVICES=all | ||
- NVIDIA_DRIVER_CAPABILITIES=all | ||
- ROS_MASTER_URI=http://roscore:11311 | ||
- CARLA_SIM_HOST=<carla-server-ip-address> | ||
- ROS_HOSTNAME=agent | ||
- XDG_RUNTIME_DIR=/tmp/runtime-carla | ||
volumes: | ||
- /tmp/.X11-unix:/tmp/.X11-unix | ||
# if you change the volume here also change the copy command | ||
# in ``build/docker/build/Dockerfile | ||
- ../:/workspace | ||
# mount git config for dvc | ||
- ../.gitconfig:/home/carla/.gitconfig | ||
- ../:/workspace/ | ||
networks: | ||
- carla | ||
- ros | ||
|
||
networks: | ||
carla: | ||
ros: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters