summaryrefslogtreecommitdiff
path: root/testing/docker/ubuntu16.04/Dockerfile
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/ubuntu16.04/Dockerfile
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/ubuntu16.04/Dockerfile')
-rw-r--r--testing/docker/ubuntu16.04/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/docker/ubuntu16.04/Dockerfile b/testing/docker/ubuntu16.04/Dockerfile
index e2ea06d..a0b68ae 100644
--- a/testing/docker/ubuntu16.04/Dockerfile
+++ b/testing/docker/ubuntu16.04/Dockerfile
@@ -1,6 +1,6 @@
FROM ubuntu:16.04
-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 apt-get update