Skip to content

Commit

Permalink
launch bash even for docker terminal workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Interpause committed Dec 3, 2022
1 parent afddbe8 commit cf257b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ RUN apt-get update && apt-get install -y \

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 10

RUN echo "ENV=$HOME/.shrc; export ENV" >> ~/.profile
ENV ENV=\$HOME/.shrc
RUN echo "exec bash" >> ~/.shrc
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash\nsource /code/install/local_setup.bash" >> ~/.bashrc

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ENTRYPOINT [ \
USER $USERNAME

# Make /bin/sh launch bash instead.
RUN echo "ENV=$HOME/.shrc; export ENV" >> ~/.profile
ENV ENV=\$HOME/.shrc
RUN echo "exec bash" >> ~/.shrc
# Auto-activate ROS whenever bash shell is opened.
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash\nsource /code/install/local_setup.bash" >> ~/.bashrc
Expand Down

0 comments on commit cf257b4

Please sign in to comment.