From 17acfda762e0bdec1da35d010663b308f53f48e6 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 18 Dec 2024 12:46:50 +0000 Subject: [PATCH] autosync --- .devcontainer/jazzy/Dockerfile | 43 +++++++++++++++------------------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/.devcontainer/jazzy/Dockerfile b/.devcontainer/jazzy/Dockerfile index a521992..5b9963f 100644 --- a/.devcontainer/jazzy/Dockerfile +++ b/.devcontainer/jazzy/Dockerfile @@ -2,30 +2,25 @@ FROM ros:jazzy-ros-base # Add vscode user with same UID and GID as your host system # (copied from https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user#_creating-a-nonroot-user) -ARG USERNAME=vscode -ARG USER_UID=1000 -ARG USER_GID=$USER_UID -RUN usermod -l vscode ubuntu -# \ -# && apt-get update \ -# && apt-get install -y sudo \ -# && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ -# && chmod 0440 /etc/sudoers.d/$USERNAME +ARG USERNAME=ubuntu +RUN apt-get update \ + && apt-get install -y sudo \ + && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ + && chmod 0440 /etc/sudoers.d/$USERNAME # Switch from root to user USER $USERNAME -## Add user to video group to allow access to webcam -#RUN sudo usermod --append --groups video $USERNAME -# -## Update all packages -#RUN sudo apt update && sudo apt upgrade -y -# -## Install Git -#RUN sudo apt install -y git -# -## Rosdep update -#RUN rosdep update -# -## Source the ROS setup file -#RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc -# \ No newline at end of file +# Add user to video group to allow access to webcam +RUN sudo usermod --append --groups video $USERNAME + +# Update all packages +RUN sudo apt update && sudo apt upgrade -y + +# Install Git +RUN sudo apt install -y git + +# Rosdep update +RUN rosdep update + +# Source the ROS setup file +RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc