Skip to content
Open
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
9 changes: 9 additions & 0 deletions umrt-build-dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@
) > /etc/ssh/sshd_config.d/umrt.conf \
&& mkdir /run/sshd

# Automagically source the ros environment for root and user
RUN --mount=type=secret,id=DEV_USER_NAME ( \
echo 'source /opt/ros/humble/setup.bash' \
echo 'if [ -f /workspace/install/setup.bash ]; then source /workspace/install/setup.bash; fi' \
) | tee /home/"$(cat /run/secrets/DEV_USER_NAME)"/.bashrc >> /root/.bashrc

# Add user to sudo group
RUN --mount=type=secret,id=DEV_USER_NAME usermod -aG sudo "$(cat /run/secrets/DEV_USER_NAME)"

ENTRYPOINT /usr/sbin/sshd && /bin/bash

Check warning on line 40 in umrt-build-dev.Dockerfile

View workflow job for this annotation

GitHub Actions / build-umrt-build-dev / build-and-push-image

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for ENTRYPOINT to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
Loading