From 612d374fbea8d616ebf276c30a6fbca78e8f4bf9 Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Tue, 11 Feb 2020 20:25:37 +1300 Subject: 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 --- testing/docker/fedora29/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/docker/fedora29/Dockerfile') diff --git a/testing/docker/fedora29/Dockerfile b/testing/docker/fedora29/Dockerfile index 65a0c60e..15dfb348 100644 --- a/testing/docker/fedora29/Dockerfile +++ b/testing/docker/fedora29/Dockerfile @@ -1,6 +1,6 @@ FROM fedora:29 -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 yum install -y autoconf gperf bison file flex texinfo help2man gcc-c++ libtool make patch \ -- cgit v1.2.3