Skip to content

Commit f4f9f0f

Browse files
authored
HADOOP-16562. [pb-upgrade] Update docker image to have 3.7.1 protoc executable (#1429). Contributed by Vinayakumar B.
1 parent 4e273a3 commit f4f9f0f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

dev-support/docker/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,22 @@ RUN curl -L -o hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.30
212212
&& dpkg --install hugo.deb \
213213
&& rm hugo.deb
214214

215+
######
216+
# Install Google Protobuf 3.7.1 (2.6.0 ships with Xenial)
217+
# Keep 2.5.0 as well, until 3.7.1 upgrade is complete.
218+
######
219+
# hadolint ignore=DL3003
220+
RUN mkdir -p /opt/protobuf-3.7-src \
221+
&& curl -L -s -S \
222+
https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-java-3.7.1.tar.gz \
223+
-o /opt/protobuf-3.7.1.tar.gz \
224+
&& tar xzf /opt/protobuf-3.7.1.tar.gz --strip-components 1 -C /opt/protobuf-3.7-src \
225+
&& cd /opt/protobuf-3.7-src \
226+
&& ./configure --prefix=/opt/protobuf-3.7 \
227+
&& make install \
228+
&& cd /root \
229+
&& rm -rf /opt/protobuf-3.7-src
230+
215231
# Add a welcome message and environment checks.
216232
COPY hadoop_env_checks.sh /root/hadoop_env_checks.sh
217233
RUN chmod 755 /root/hadoop_env_checks.sh

0 commit comments

Comments
 (0)