From 576669daef5c72d1f1b0659d59b83ec63cb7c73d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 18 Dec 2024 12:39:46 +0000 Subject: [PATCH] autosync --- .devcontainer/jazzy/Dockerfile | 43 +++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/.devcontainer/jazzy/Dockerfile b/.devcontainer/jazzy/Dockerfile index 5b9963f..a521992 100644 --- a/.devcontainer/jazzy/Dockerfile +++ b/.devcontainer/jazzy/Dockerfile @@ -2,25 +2,30 @@ 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=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 +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 # 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 +## 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