Skip to content

Commit

Permalink
Updated Dockerfile .bashrc creation to be more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceMcRooster committed Jan 15, 2025
1 parent 2049949 commit 7040628
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ RUN apt-get install -y -qq \
COPY python-requirements.txt python-requirements.txt
RUN pip3 install -r python-requirements.txt

# ABSOLUTELY DO NOT use single quotes inside this block
# end any new lines with "\n\" (no quotes)
RUN printf '\n# automatically generated by Dockerfile \n\
source "/opt/ros/humble/setup.bash" -- \n\
cd rb_ws \n\
colcon build --symlink-install \n\
source install/local_setup.bash \n\
chmod -R +x src/buggy/scripts/ \n\
source environments/docker_env.bash \n\
\n' >> ~/.bashrc

RUN echo 'source "/opt/ros/humble/setup.bash" --' >> ~/.bashrc && \
echo 'cd rb_ws' >> ~/.bashrc && \
echo 'colcon build --symlink-install' >> ~/.bashrc && \
echo 'source install/local_setup.bash' >> ~/.bashrc && \
echo 'chmod -R +x src/buggy/scripts/' >> ~/.bashrc && \
echo 'source environments/docker_env.bash' >> ~/.bashrc

# add mouse to tmux
RUN echo 'set -g mouse on' >> ~/.tmux.conf

0 comments on commit 7040628

Please sign in to comment.