[hadoop] branch trunk updated: HADOOP-16562. [pb-upgrade] Update docker image to have 3.7.1 protoc executable (#1429).

2019-09-13 Thread vinayakumarb
This is an automated email from the ASF dual-hosted git repository.

vinayakumarb pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
 new 39e82ac  HADOOP-16562. [pb-upgrade] Update docker image to have 3.7.1 
protoc executable (#1429).
39e82ac is described below

commit 39e82acc485db0e66cbb3dd26b59dfe111ce6a10
Author: Vinayakumar B 
AuthorDate: Fri Sep 13 15:30:24 2019 +0530

HADOOP-16562. [pb-upgrade] Update docker image to have 3.7.1 protoc 
executable (#1429).

Addendum patch. Moved protobuf-3.7.1 installation within YETUS marker.
---
 dev-support/docker/Dockerfile | 20 ++--
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile
index fe38395..371bdde 100644
--- a/dev-support/docker/Dockerfile
+++ b/dev-support/docker/Dockerfile
@@ -200,6 +200,16 @@ RUN curl -L -s -S \
 ###
 ENV MAVEN_OPTS -Xms256m -Xmx1536m
 
+RUN mkdir -p /opt/protobuf-3.7-src \
+&& curl -L -s -S \
+  
https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-java-3.7.1.tar.gz
 \
+  -o /opt/protobuf-3.7.1.tar.gz \
+&& tar xzf /opt/protobuf-3.7.1.tar.gz --strip-components 1 -C 
/opt/protobuf-3.7-src \
+&& cd /opt/protobuf-3.7-src \
+&& ./configure --prefix=/opt/protobuf-3.7 \
+&& make install \
+&& cd /root \
+&& rm -rf /opt/protobuf-3.7-src
 
 ###
 # Everything past this point is either not needed for testing or breaks Yetus.
@@ -217,16 +227,6 @@ RUN curl -L -o hugo.deb 
https://github.com/gohugoio/hugo/releases/download/v0.30
 # Keep 2.5.0 as well, until 3.7.1 upgrade is complete.
 ##
 # hadolint ignore=DL3003
-RUN mkdir -p /opt/protobuf-3.7-src \
-&& curl -L -s -S \
-  
https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-java-3.7.1.tar.gz
 \
-  -o /opt/protobuf-3.7.1.tar.gz \
-&& tar xzf /opt/protobuf-3.7.1.tar.gz --strip-components 1 -C 
/opt/protobuf-3.7-src \
-&& cd /opt/protobuf-3.7-src \
-&& ./configure --prefix=/opt/protobuf-3.7 \
-&& make install \
-&& cd /root \
-&& rm -rf /opt/protobuf-3.7-src
 
 # Add a welcome message and environment checks.
 COPY hadoop_env_checks.sh /root/hadoop_env_checks.sh


-
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org



[hadoop] branch trunk updated: HADOOP-16562. [pb-upgrade] Update docker image to have 3.7.1 protoc executable (#1429). Contributed by Vinayakumar B.

2019-09-12 Thread vinayakumarb
This is an automated email from the ASF dual-hosted git repository.

vinayakumarb pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
 new f4f9f0f  HADOOP-16562. [pb-upgrade] Update docker image to have 3.7.1 
protoc executable (#1429). Contributed by Vinayakumar B.
f4f9f0f is described below

commit f4f9f0fe4f215e2e1b88b0607102f22388acfe45
Author: Vinayakumar B 
AuthorDate: Thu Sep 12 16:47:54 2019 +0530

HADOOP-16562. [pb-upgrade] Update docker image to have 3.7.1 protoc 
executable (#1429). Contributed by Vinayakumar B.
---
 dev-support/docker/Dockerfile | 16 
 1 file changed, 16 insertions(+)

diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile
index e71e51c..fe38395 100644
--- a/dev-support/docker/Dockerfile
+++ b/dev-support/docker/Dockerfile
@@ -212,6 +212,22 @@ RUN curl -L -o hugo.deb 
https://github.com/gohugoio/hugo/releases/download/v0.30
 && dpkg --install hugo.deb \
 && rm hugo.deb
 
+##
+# Install Google Protobuf 3.7.1 (2.6.0 ships with Xenial)
+# Keep 2.5.0 as well, until 3.7.1 upgrade is complete.
+##
+# hadolint ignore=DL3003
+RUN mkdir -p /opt/protobuf-3.7-src \
+&& curl -L -s -S \
+  
https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-java-3.7.1.tar.gz
 \
+  -o /opt/protobuf-3.7.1.tar.gz \
+&& tar xzf /opt/protobuf-3.7.1.tar.gz --strip-components 1 -C 
/opt/protobuf-3.7-src \
+&& cd /opt/protobuf-3.7-src \
+&& ./configure --prefix=/opt/protobuf-3.7 \
+&& make install \
+&& cd /root \
+&& rm -rf /opt/protobuf-3.7-src
+
 # Add a welcome message and environment checks.
 COPY hadoop_env_checks.sh /root/hadoop_env_checks.sh
 RUN chmod 755 /root/hadoop_env_checks.sh


-
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org