Skip to content

Commit

Permalink
Add dev compose file for building and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil-sethi committed Feb 24, 2025
1 parent 4967317 commit aa4d967
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: scancontrol

services:
# Builds the ROS package
scancontrol-build:
container_name: scancontrol-build
build:
context: ${SCANCONTROL_SRC_DIR}
dockerfile: .docker/build.Dockerfile
args:
- TARGET_WS=${SCANCONTROL_TARGET_WS}
network_mode: host
image: "scancontrol:build"
working_dir: ${SCANCONTROL_TARGET_WS}
# command: tail -f /dev/null

# Runs the Scancontrol driver node as continuous service
scancontrol-service:
image: "scancontrol:build"
container_name: scancontrol-service
working_dir: ${SCANCONTROL_TARGET_WS}
ipc: host
network_mode: host
environment:
- ROS_DOMAIN_ID=31
- ROS_LOCALHOST_ONLY=0
- RMW_IMPLEMENTATION=rmw_fastrtps_cpp
depends_on:
scancontrol-build:
condition: service_completed_successfully
command: /bin/bash -c 'source install/setup.bash && ros2 run micro_epsilon_scancontrol_driver driver_node'
# command: tail -f /dev/null

0 comments on commit aa4d967

Please sign in to comment.