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

apalumbo pushed a commit to branch mahout-14.1
in repository https://gitbox.apache.org/repos/asf/mahout.git

commit 378b2a0ad71337b8983afb47e6a4157906bb345b
Author: Andrew Palumbo <[email protected]>
AuthorDate: Sat Nov 2 01:08:47 2019 -0700

    change a couple of things in DockerFile
---
 Dockerfile.Spark => Dockerfile                                   | 9 ++++++---
 .../kubernetes/docker/src/main/dockerfiles/Dockerfile            | 4 ++--
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Dockerfile.Spark b/Dockerfile
similarity index 93%
rename from Dockerfile.Spark
rename to Dockerfile
index bad0917..0897f83 100644
--- a/Dockerfile.Spark
+++ b/Dockerfile
@@ -61,13 +61,16 @@ RUN set -ex && \
     # rm /bin/sh && \
     # ln -sv /bin/bash /bin/sh && \
     # echo "auth required pam_wheel.so use_uid" >> /etc/pam.d/su && \
-    # chgrp root /etc/passwd && chmod ug+rw /etc/passwd
+    chgrp root /etc/passwd && chmod ug+rw /etc/passwd
+
+# build mahout
+RUN mvn clean package install
 
 ENV MAHOUT_HOME /opt/mahout
 COPY lib ${MAHPOUT_HOME}/lib
 COPY bin ${MAHPOUT_HOME}/bin
-COPY resource-managers/kubernetes/docker/src/main/dockerfiles/entrypoint.sh 
${MAHPOUT_HOME}
-COPY resource-managers/kubernetes/docker/src/main/dockerfiles/Dockerfile 
${MAHPOUT_HOME}
+COPY entrypoint.sh ${MAHPOUT_HOME}
+COPY Dockerfile ${MAHPOUT_HOME}
 COPY examples ${MAHPOUT_HOME}/examples
 
 ENV SPARK_HOME /opt/spark
diff --git 
a/resource-managers/kubernetes/docker/src/main/dockerfiles/Dockerfile 
b/resource-managers/kubernetes/docker/src/main/dockerfiles/Dockerfile
index 5c7c89a..6f588ab 100644
--- a/resource-managers/kubernetes/docker/src/main/dockerfiles/Dockerfile
+++ b/resource-managers/kubernetes/docker/src/main/dockerfiles/Dockerfile
@@ -22,8 +22,8 @@ ARG spark_uid=185
 
 # Before building the mahout docker image, we must build a spark distrobution 
following
 # the instructions in http://spark.apache.org/docs/latest/building-spark.html.
-# this Dockerfile.Spark will build the Spark version 2.4.3 against Scala 2.12.
-# docker build -t mahout:latest -f 
resource_managers/docker/kubernetes/src/main/dockerfiles/Dockerfile.Spark .
+# this Dockerfile will build the Spark version 2.4.3 against Scala 2.12.
+# docker build -t mahout:latest -f 
resource_managers/docker/kubernetes/src/main/dockerfiles/Dockerfile .
 
 
 RUN set -ex && \

Reply via email to