Skip to content

Commit

Permalink
Merge pull request #129 from CMU-cabot/muratams/fix-localization-dock…
Browse files Browse the repository at this point in the history
…erfile

fix localization/Dockerfile to add user to video group to fix an error
  • Loading branch information
daisukes authored Jan 31, 2025
2 parents 8b22570 + ec81659 commit 289433b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/localization/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ RUN useradd -m $USERNAME && \
chmod 0440 /etc/sudoers.d/$USERNAME && \
usermod --uid $UID $USERNAME && \
groupmod --gid $UID $USERNAME
# add user to video group to fix NvRmMemInitNvmap error on Jetson
# https://forums.developer.nvidia.com/t/jetpack-5-0-dp-nvrmmeminitnvmap-failed-with-permission-denied/219804
RUN usermod -aG video $USERNAME

COPY ros_entrypoint.sh /ros_entrypoint.sh
RUN sed -i 's:custom_ws:cartographer_ws:' /ros_entrypoint.sh
Expand Down
3 changes: 3 additions & 0 deletions docker/localization/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ RUN useradd -m $USERNAME && \
chmod 0440 /etc/sudoers.d/$USERNAME && \
usermod --uid $UID $USERNAME && \
groupmod --gid $UID $USERNAME
# add user to video group to fix NvRmMemInitNvmap error on Jetson
# https://forums.developer.nvidia.com/t/jetpack-5-0-dp-nvrmmeminitnvmap-failed-with-permission-denied/219804
RUN usermod -aG video $USERNAME

USER $USERNAME

Expand Down

0 comments on commit 289433b

Please sign in to comment.