Skip to content

Commit

Permalink
autosync
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 18, 2024
1 parent 9cd06a9 commit 576669d
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions .devcontainer/jazzy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
#

0 comments on commit 576669d

Please sign in to comment.