Skip to content

Commit

Permalink
feat: add setup.bash source to all images
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiranda-queiros committed Aug 31, 2024
1 parent 2d04653 commit f6e9da4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker_foxy_desktop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ RUN usermod -aG video $USERNAME

# Add RMW_IMPLEMENTATION to .bashrc
RUN echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> /home/${USERNAME}/.bashrc
# Add the source of the project to the .bashrc
RUN echo "if [ -f /home/${USERNAME}/dev_ws/install/setup.bash ]; then source /home/${USERNAME}/dev_ws/install/setup.bash; fi" >> /home/${USERNAME}/.bashrc

# Clean up
RUN rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 2 additions & 0 deletions docker_foxy_jetson/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ RUN usermod -aG video $USERNAME

# Add RMW_IMPLEMENTATION to .bashrc
RUN echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> /home/${USERNAME}/.bashrc
# Add the source of the project to the .bashrc
RUN echo "if [ -f /home/${USERNAME}/dev_ws/install/setup.bash ]; then source /home/${USERNAME}/dev_ws/install/setup.bash; fi" >> /home/${USERNAME}/.bashrc

# Clean up
RUN rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 2 additions & 0 deletions docker_humble_desktop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ RUN usermod -aG video $USERNAME

# Add RMW_IMPLEMENTATION to .bashrc
RUN echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> /home/${USERNAME}/.bashrc
# Add the source of the project to the .bashrc
RUN echo "if [ -f /home/${USERNAME}/dev_ws/install/setup.bash ]; then source /home/${USERNAME}/dev_ws/install/setup.bash; fi" >> /home/${USERNAME}/.bashrc

# Clean up
RUN rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 2 additions & 0 deletions docker_humble_jetson/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ RUN usermod -aG video $USERNAME

# Add RMW_IMPLEMENTATION to .bashrc
RUN echo "export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp" >> /home/${USERNAME}/.bashrc
# Add the source of the project to the .bashrc
RUN echo "if [ -f /home/${USERNAME}/dev_ws/install/setup.bash ]; then source /home/${USERNAME}/dev_ws/install/setup.bash; fi" >> /home/${USERNAME}/.bashrc

# Clean up
RUN rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit f6e9da4

Please sign in to comment.