Skip to content

Commit

Permalink
new dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
imagidan committed Feb 7, 2024
1 parent 6e3235f commit 3486677
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM dronolab/simulation:latest
FROM ghcr.io/dronolab/simulation:latest

# 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)
Expand All @@ -9,10 +9,8 @@ ARG USER_GID=$USER_UID
WORKDIR /workspace/$USERNAME

RUN groupadd --gid $USER_GID $USERNAME \
&& groupadd -g 107 input \
&& useradd -s /bin/bash --uid $USER_UID -g $USER_GID -G 107 -m $USERNAME \
&& apt-get update \
&& apt-get install -y sudo \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME

Expand All @@ -36,4 +34,4 @@ RUN rosdep update
RUN rosdep install --from-paths src --ignore-src --rosdistro humble -y

# Source the ROS setup file
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc
RUN echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc

0 comments on commit 3486677

Please sign in to comment.