Skip to content

Commit

Permalink
fix: Add default values to Dockerfile arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
2b-t committed Feb 4, 2024
1 parent 3a4f9ed commit 9e90902
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions templates/ros/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
##############
FROM ros:noetic-robot as base

ARG CATKIN_WORKSPACE_DIR=${CATKIN_WORKSPACE_DIR}
ARG CATKIN_WORKSPACE_DIR="/catkin_ws"

LABEL org.opencontainers.image.authors="[email protected]"
LABEL description="ROS Noetic Docker template"
Expand Down Expand Up @@ -31,9 +31,9 @@ ENV DEBIAN_FRONTEND=dialog
#####################
FROM base as dev

ARG USERNAME=${USERNAME}
ARG UID=${UID}
ARG GID=${GID}
ARG USERNAME="developer"
ARG UID=1000
ARG GID=1000

ENV DEBIAN_FRONTEND=noninteractive

Expand Down
8 changes: 4 additions & 4 deletions templates/ros2/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
##############
FROM ros:humble-ros-base as base

ARG AMENT_WORKSPACE_DIR=${AMENT_WORKSPACE_DIR}
ARG AMENT_WORKSPACE_DIR="/ament_ws"

LABEL org.opencontainers.image.authors="[email protected]"
LABEL description="ROS 2 Humble Docker template"
Expand Down Expand Up @@ -36,9 +36,9 @@ ENV DEBIAN_FRONTEND=dialog
#####################
FROM base as dev

ARG USERNAME=${USERNAME}
ARG UID=${UID}
ARG GID=${GID}
ARG USERNAME="developer"
ARG UID=1000
ARG GID=1000

ENV DEBIAN_FRONTEND=noninteractive

Expand Down

0 comments on commit 9e90902

Please sign in to comment.