-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dev compose file for building and testing
- Loading branch information
1 parent
4967317
commit aa4d967
Showing
1 changed file
with
32 additions
and
0 deletions.
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
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 |