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

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


The following commit(s) were added to refs/heads/joshfischer/update-site-build 
by this push:
     new 91bad7b  adjust user settings
91bad7b is described below

commit 91bad7b7ab451f667a609969f7d99fc64e39296f
Author: Josh Fischer <[email protected]>
AuthorDate: Sat Apr 11 20:31:13 2020 -0500

    adjust user settings
---
 website2/website/scripts/Dockerfile.ubuntu18.04 | 10 ++--------
 website2/website/scripts/compile-docker.sh      |  3 ---
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/website2/website/scripts/Dockerfile.ubuntu18.04 
b/website2/website/scripts/Dockerfile.ubuntu18.04
index 9d16f48..0ea84d6 100644
--- a/website2/website/scripts/Dockerfile.ubuntu18.04
+++ b/website2/website/scripts/Dockerfile.ubuntu18.04
@@ -52,17 +52,11 @@ RUN apt-get update && apt-get install -y nodejs
 
 ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
 
-ARG UNAME
-ARG UID
-ARG GID
-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
 \
       && chmod +x /tmp/bazel.sh \
       && /tmp/bazel.sh --user
 
-ADD bazelrc /home/$UNAME/.bazelrc
-ENV PATH="/home/$UNAME/bin:${PATH}"
+ADD bazelrc /$USER/.bazelrc
+ENV PATH="/$USER/bin:${PATH}"
 
diff --git a/website2/website/scripts/compile-docker.sh 
b/website2/website/scripts/compile-docker.sh
index 0c21211..1e96fb3 100755
--- a/website2/website/scripts/compile-docker.sh
+++ b/website2/website/scripts/compile-docker.sh
@@ -54,9 +54,6 @@ echo $DOCKER_FILE
 
 echo "Building heron-compiler container"
 docker build \
-  --build-arg UNAME=$USER \
-  --build-arg UID=$(id -u ${USER}) \
-  --build-arg GID=$(id -g ${USER}) \
   -t heron-compiler:$TARGET_PLATFORM -f $DOCKER_FILE .
 
 

Reply via email to