File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,15 +32,12 @@ RUN echo 'Asia/Kolkata' > /etc/timezone && \
3232# install packages
3333COPY aptPkgs.list /tmp/aptPkgs.list
3434RUN apt-get update && apt-get install -q -y --no-install-recommends \
35+ dirmngr \
36+ gnupg2 \
3537 curl \
38+ ca-certificates \
3639 && rm -rf /var/lib/apt/lists/*
3740
38- # Create non root user with sudo privilege
39- RUN groupadd --gid $USER_GID $USERNAME \
40- && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
41- && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
42- && chmod 0440 /etc/sudoers.d/$USERNAME
43-
4441# Setup ROS Apt sources
4542RUN curl -L -s -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/1.1.0/ros2-apt-source_1.1.0.jammy_all.deb \
4643 && echo "1600cb8cc28258a39bffc1736a75bcbf52d1f2db371a4d020c1b187d2a5a083b /tmp/ros2-apt-source.deb" | sha256sum --strict --check \
@@ -55,6 +52,11 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
5552 $(cat /tmp/aptPkgs.list) \
5653 && rm -rf /var/lib/apt/lists/*
5754
55+ # Create non root user with sudo privilege
56+ RUN groupadd --gid $USER_GID $USERNAME \
57+ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
58+ && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
59+ && chmod 0440 /etc/sudoers.d/$USERNAME
5860USER $USERNAME
5961
6062# setup entrypoint
Original file line number Diff line number Diff line change 11at
22bash-completion
33build-essential
4- ca-certificates
54cmake
6- dirmngr
75git
86gnupg
9- gnupg2
107libaprutil1
118libgl1-mesa-dev
129libglfw3-dev
Original file line number Diff line number Diff line change @@ -32,15 +32,12 @@ RUN echo 'Asia/Kolkata' > /etc/timezone && \
3232# install packages
3333COPY aptPkgs.list /tmp/aptPkgs.list
3434RUN apt-get update && apt-get install -q -y --no-install-recommends \
35+ dirmngr \
36+ gnupg2 \
3537 curl \
38+ ca-certificates \
3639 && rm -rf /var/lib/apt/lists/*
3740
38- # Create non root user with sudo privilege
39- RUN groupadd --gid $USER_GID $USERNAME \
40- && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
41- && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
42- && chmod 0440 /etc/sudoers.d/$USERNAME
43-
4441# Setup ROS Apt sources
4542RUN curl -L -s -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/1.1.0/ros2-apt-source_1.1.0.jammy_all.deb \
4643 && echo "1600cb8cc28258a39bffc1736a75bcbf52d1f2db371a4d020c1b187d2a5a083b /tmp/ros2-apt-source.deb" | sha256sum --strict --check \
@@ -55,6 +52,11 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
5552 $(cat /tmp/aptPkgs.list) \
5653 && rm -rf /var/lib/apt/lists/*
5754
55+ # Create non root user with sudo privilege
56+ RUN groupadd --gid $USER_GID $USERNAME \
57+ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
58+ && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
59+ && chmod 0440 /etc/sudoers.d/$USERNAME
5860USER $USERNAME
5961
6062# setup entrypoint
Original file line number Diff line number Diff line change 11at
22bash-completion
33build-essential
4- ca-certificates
54cmake
6- dirmngr
75git
86gnupg
9- gnupg2
107libaprutil1
118libgl1-mesa-dev
129libglfw3-dev
Original file line number Diff line number Diff line change @@ -35,15 +35,12 @@ RUN echo 'Asia/Kolkata' > /etc/timezone && \
3535# install packages
3636COPY aptPkgs.list /tmp/aptPkgs.list
3737RUN apt-get update && apt-get install -q -y --no-install-recommends \
38+ dirmngr \
39+ gnupg2 \
3840 curl \
41+ ca-certificates \
3942 && rm -rf /var/lib/apt/lists/*
4043
41- # Create non root user with sudo privilege
42- RUN groupadd --gid $USER_GID $USERNAME \
43- && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
44- && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
45- && chmod 0440 /etc/sudoers.d/$USERNAME
46-
4744# Setup ROS Apt sources
4845RUN curl -L -s -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/1.1.0/ros2-apt-source_1.1.0.jammy_all.deb \
4946 && echo "1600cb8cc28258a39bffc1736a75bcbf52d1f2db371a4d020c1b187d2a5a083b /tmp/ros2-apt-source.deb" | sha256sum --strict --check \
@@ -58,6 +55,11 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
5855 $(cat /tmp/aptPkgs.list) \
5956 && rm -rf /var/lib/apt/lists/*
6057
58+ # Create non root user with sudo privilege
59+ RUN groupadd --gid $USER_GID $USERNAME \
60+ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
61+ && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
62+ && chmod 0440 /etc/sudoers.d/$USERNAME
6163USER $USERNAME
6264
6365# setup entrypoint
Original file line number Diff line number Diff line change 11at
22bash-completion
33build-essential
4- ca-certificates
54cmake
6- dirmngr
75git
86gnupg
9- gnupg2
107libaprutil1
118libgl1-mesa-dev
129libglfw3-dev
Original file line number Diff line number Diff line change 1- FROM ghcr.io/smart-wheelchair-rrc/humble:dev5.0.4
1+ FROM ghcr.io/smart-wheelchair-rrc/humble:dev5.0.5
22
33ARG USERNAME=container_user
44
Original file line number Diff line number Diff line change 1- FROM ghcr.io/smart-wheelchair-rrc/humble_gazebo:dev5.0.4
1+ FROM ghcr.io/smart-wheelchair-rrc/humble_gazebo:dev5.0.5
22
33ARG USERNAME=container_user
44
Original file line number Diff line number Diff line change 1- FROM ghcr.io/smart-wheelchair-rrc/humble_cuda:dev5.0.4
1+ FROM ghcr.io/smart-wheelchair-rrc/humble_cuda:dev5.0.5
22
33ARG USERNAME=container_user
44
You can’t perform that action at this time.
0 commit comments