-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,12 @@ | |
FROM ros:noetic-robot as base | ||
|
||
ARG CATKIN_WORKSPACE_DIR=${CATKIN_WORKSPACE_DIR} | ||
WORKDIR ${CATKIN_WORKSPACE_DIR} | ||
|
||
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL description="ROS Noetic Docker template" | ||
LABEL version="1.0" | ||
|
||
WORKDIR ${CATKIN_WORKSPACE_DIR} | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
@@ -50,7 +54,10 @@ RUN apt-get update \ | |
|
||
ENV DEBIAN_FRONTEND=dialog | ||
|
||
RUN addgroup --gid ${GID} ${USERNAME} \ | ||
RUN apt-get update \ | ||
&& apt-get install -y sudo \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& addgroup --gid ${GID} ${USERNAME} \ | ||
&& adduser --disabled-password --gecos '' --uid ${GID} --gid ${GID} ${USERNAME} \ | ||
&& echo ${USERNAME} ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/${USERNAME} \ | ||
&& chown -R ${UID}:${GID} /home/${USERNAME} \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,12 @@ | |
FROM ros:humble-ros-base as base | ||
|
||
ARG AMENT_WORKSPACE_DIR=${AMENT_WORKSPACE_DIR} | ||
WORKDIR ${AMENT_WORKSPACE_DIR} | ||
|
||
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL description="ROS 2 Humble Docker template" | ||
LABEL version="1.0" | ||
|
||
WORKDIR ${AMENT_WORKSPACE_DIR} | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
@@ -55,7 +59,10 @@ RUN apt-get update \ | |
|
||
ENV DEBIAN_FRONTEND=dialog | ||
|
||
RUN addgroup --gid ${GID} ${USERNAME} \ | ||
RUN apt-get update \ | ||
&& apt-get install -y sudo \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& addgroup --gid ${GID} ${USERNAME} \ | ||
&& adduser --disabled-password --gecos '' --uid ${GID} --gid ${GID} ${USERNAME} \ | ||
&& echo ${USERNAME} ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/${USERNAME} \ | ||
&& chown -R ${UID}:${GID} /home/${USERNAME} \ | ||
|