You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by jo...@apache.org on 2019/11/26 02:22:20 UTC

[incubator-heron] branch joshfischer/asf-site updated: adding host user to docker container

This is an automated email from the ASF dual-hosted git repository.

joshfischer pushed a commit to branch joshfischer/asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git


The following commit(s) were added to refs/heads/joshfischer/asf-site by this push:
     new cb796d0  adding host user to docker container
cb796d0 is described below

commit cb796d02f71c2ebed5159e9cdd90cc0a52ed8b6f
Author: Josh Fischer <jo...@joshfischer.io>
AuthorDate: Mon Nov 25 20:21:39 2019 -0600

    adding host user to docker container
---
 website2/website/scripts/Dockerfile.ubuntu18.04 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/website2/website/scripts/Dockerfile.ubuntu18.04 b/website2/website/scripts/Dockerfile.ubuntu18.04
index 0a154d7..d2a75e1 100644
--- a/website2/website/scripts/Dockerfile.ubuntu18.04
+++ b/website2/website/scripts/Dockerfile.ubuntu18.04
@@ -53,9 +53,10 @@ RUN apt-get update && apt-get install -y nodejs
 ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
 
 ARG UNAME=siteuser
-
-
-
+ARG UID=1000
+ARG GID=1000
+RUN groupadd -g $GID -o $UNAME
+RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
 USER $UNAME
 
 RUN wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/$bazelVersion/bazel-$bazelVersion-installer-linux-x86_64.sh \