summaryrefslogtreecommitdiff
path: root/testing/docker/gentoo-amd64
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2020-02-11 07:25:37 (GMT)
committerChris Packham <judge.packham@gmail.com>2020-02-17 07:07:20 (GMT)
commit612d374fbea8d616ebf276c30a6fbca78e8f4bf9 (patch)
tree694abe41c84120044d4f050fde32f03ba065ae26 /testing/docker/gentoo-amd64
parent4fa0ba100b8924b27942ff253c5474c655427027 (diff)
testing/docker: set default value for CTNG_UID/CTNG_GID
Make the creation of docker images easier so that CTNG_UID/CTNG_GID have a default value if it's not explicitly specified when building. This will allow publishing of images on various package repositories (e.g. docker hub, gitlab containers). dmgr.sh can still be used to set the UID/GID to that of the current user when building a custom container. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'testing/docker/gentoo-amd64')
-rw-r--r--testing/docker/gentoo-amd64/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/docker/gentoo-amd64/Dockerfile b/testing/docker/gentoo-amd64/Dockerfile
index ec5c131..b261cc3 100644
--- a/testing/docker/gentoo-amd64/Dockerfile
+++ b/testing/docker/gentoo-amd64/Dockerfile
@@ -1,6 +1,6 @@
FROM gentoo/stage3-amd64-hardened
-ARG CTNG_UID
-ARG CTNG_GID
+ARG CTNG_UID=1000
+ARG CTNG_GID=1000
RUN groupadd -g $CTNG_GID ctng
RUN useradd -d /home/ctng -m -g $CTNG_GID -u $CTNG_UID -s /bin/bash ctng
RUN wget -O /sbin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64