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

This commit is contained in:
Vinayakumar B 2019-09-12 16:47:54 +05:30 committed by GitHub
parent 4e273a31f6
commit f4f9f0fe4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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