Skip to content

Commit

Permalink
added to dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
  • Loading branch information
quarkytale committed Jun 23, 2023
1 parent 605e1a4 commit 9f9f8d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/mbari_wec/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@ RUN /bin/bash -c 'source /opt/ros/humble/setup.bash \
ENV SETUP_SH /home/$USERNAME/setup.bash
RUN touch ${SETUP_SH} \
&& chmod 755 ${SETUP_SH} \
&& echo ". ${MBARI_WEC_WS}/install/setup.bash" >> ${SETUP_SH}
&& echo ". ${MBARI_WEC_WS}/install/setup.bash" >> ${SETUP_SH} \
&& echo "export SDF_PATH=\$GZ_SIM_RESOURCE_PATH" >> ${SETUP_SH}
ENV RUN_SH /home/$USERNAME/run_simulation.bash
RUN touch ${RUN_SH} \
&& chmod 755 ${RUN_SH} \
&& echo ". ${MBARI_WEC_WS}/install/setup.bash" >> ${RUN_SH} \
&& echo "export SDF_PATH=\$GZ_SIM_RESOURCE_PATH" >> ${RUN_SH} \
&& echo "ros2 launch buoy_gazebo mbari_wec.launch.py" >> ${RUN_SH}

# Start the container at a bash prompt
ENTRYPOINT ["/bin/bash" , "-c" , "source ${MBARI_WEC_WS}/install/setup.bash && /bin/bash"]
ENTRYPOINT ["/bin/bash" , "-c", "source $SETUP_SH && /bin/bash"]

0 comments on commit 9f9f8d9

Please sign in to comment.