Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Consolidate agent and bridge containers #91

Merged
merged 2 commits into from
Aug 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ services:
- USERNAME=${USERNAME:-studio-user}
- MOVEIT_STUDIO_BASE_IMAGE=picknikciuser/moveit-studio:${STUDIO_DOCKER_TAG:-main}

# Starts the MoveIt Studio Agent
agent:
# Starts the MoveIt Studio Agent and the Bridge between the Agent and the Web UI
agent_bridge:
extends: base
privileged: true
# Allow the user to use the host's network video4linux and usb_device devices.
Expand All @@ -38,17 +38,12 @@ services:
- /tmp/.X11-unix:/tmp/.X11-unix:ro
# Allow access to host hardware e.g. RealSense cameras
- /dev:/dev
deploy:
restart_policy:
condition: any
delay: 2s
# TODO: replace this tee here and in common_aliases with some integrated logger
command: bash -c "ros2 launch moveit_studio_agent studio_agent.launch.py 2>&1 | tee -a ~/.ros/log/agent_0_0.log"

# Starts the Bridge between the Agent and the Web UI
bridge:
extends: base
depends_on:
agent:
condition: service_started
# TODO: replace this tee here and in common_aliases with some integrated logger
command: bash -c "ros2 launch moveit_studio_bridge studio_bridge.launch.py 2>&1 | tee -a ~/.ros/log/bridge_0_0.log"
command: bash -c "ros2 launch moveit_studio_agent studio_agent_bridge.launch.py 2>&1 | tee -a ~/.ros/log/agent_bridge_0_0.log"

# Starts the frontend-agent
frontend_agent:
Expand Down