Skip to content

Commit cf257b4

Browse files
committed
launch bash even for docker terminal workaround
1 parent afddbe8 commit cf257b4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUN apt-get update && apt-get install -y \
5858

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

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

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ ENTRYPOINT [ \
8686
USER $USERNAME
8787

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

0 commit comments

Comments
 (0)