Skip to content

Commit

Permalink
Whitlist domain id.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpolzin committed Nov 26, 2024
1 parent 012aad6 commit f8416cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ ENV LAUNCH_COMMAND='ros2 topic pub /talker std_msgs/msg/String "{data: Hello wor

# Create build and run aliases
RUN echo 'alias build="colcon build --symlink-install --event-handlers console_direct+"' >> /etc/bash.bashrc && \
echo 'alias run="su - ros /run.sh"' >> /etc/bash.bashrc && \
echo "source /colcon_ws/install/setup.bash; $LAUNCH_COMMAND" >> /run.sh && chmod +x /run.sh
echo 'alias run="su - ros --whitelist-environment=\"ROS_DOMAIN_ID\" /run.sh"' >> /etc/bash.bashrc && \
echo "source /colcon_ws/install/setup.bash; echo UID: $UID; echo ROS_DOMAIN_ID: $ROS_DOMAIN_ID; $LAUNCH_COMMAND" >> /run.sh && chmod +x /run.sh

0 comments on commit f8416cf

Please sign in to comment.