Skip to content

Commit

Permalink
working docker-compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-hanheide committed Feb 13, 2024
1 parent 0a7a30f commit 280334a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .devcontainer/on_limo/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: '3'
services:
limo_drivers:
image: lcas.lincoln.ac.uk/lcas/limo_ros_arm64:humble
user: "ros"
privileged: true
command: bash -c "source /opt/ros/lcas/install/setup.bash; (zenoh-bridge-ros2dds -l tcp/0.0.0.0:8888 &); ros2 launch limo_bringup limo_start.launch.py"
volumes:
- /dev:/dev
- /tmp/.X11-unix:/tmp/.X11-unix
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /home/agilex/.Xauthority:/home/ros/.Xauthority
runtime: nvidia
environment:
- 'DISPLAY=:0'
- 'ROS_LOCALHOST_ONLY=0'
- 'LIBGL_ALWAYS_SOFTWARE=1'
- 'ROS_DOMAIN_ID=0'
- 'NVIDIA_VISIBLE_DEVICES=all'
network_mode: host
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
- apparmor:unconfined
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
7 changes: 7 additions & 0 deletions .devcontainer/on_limo/install-docker-compose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.24.5/docker-compose-linux-aarch64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose

0 comments on commit 280334a

Please sign in to comment.