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

Commit

Permalink
Set ENV variable from the start
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Jun 22, 2024
1 parent 8237583 commit 091dc3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN apt-get update && \
nmap \
inetutils-ping \
iproute2 \
net-tools \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -48,6 +49,7 @@ RUN mkdir -p /opt/colcon_ws/src
WORKDIR /opt/colcon_ws/src

ENV RMW_IMPLEMENTATION=rmw_fastrtps_cpp
ENV FASTRTPS_DEFAULT_PROFILES_FILE=/opt/colcon_ws/fastrtps_interface_restriction.xml

RUN git clone --recursive --depth 1 https://github.com/aentinger/msas_enrich_2023 --branch elrob24 && cd msas_enrich_2023 && git pull origin elrob24
RUN git clone --recursive --depth 1 https://github.com/107-systems/t07_robot --branch elrob24 && cd t07_robot && git pull origin elrob24
Expand All @@ -56,7 +58,7 @@ RUN git clone --recursive --depth 1 https://github.com/107-systems/robotem_rovne

WORKDIR /opt/colcon_ws

COPY create_fastrtps_interface_restriction.sh /opt/colcon_ws
COPY init_fastrtps.sh /opt/colcon_ws

RUN . /opt/ros/humble/setup.sh && \
colcon build --packages-select mandeye_unicorn t07_robot pika_spark_bno085_driver robotem_rovne --cmake-args -DCMAKE_BUILD_TYPE=Release
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,3 @@ echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
</rtps>
</participant>
</profiles>" > /opt/colcon_ws/fastrtps_interface_restriction.xml

# tell where to look
export FASTRTPS_DEFAULT_PROFILES_FILE=/opt/colcon_ws/fastrtps_interface_restriction.xml

# we probably do not want to limit to localhost
unset ROS_LOCALHOST_ONLY

0 comments on commit 091dc3a

Please sign in to comment.