Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Dockerfile .bashrc creation to be more readable #18

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ RUN apt-get install -y -qq \
COPY python-requirements.txt python-requirements.txt
RUN pip3 install -r python-requirements.txt


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
# 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

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