Created
March 15, 2017 11:10
-
-
Save lukin0110/af53596ad0ce4b15c141dc4e66f422e5 to your computer and use it in GitHub Desktop.
Docker snippet to install a certain version of Google's protocol buffers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install protocol buffers | |
# https://github.com/google/protobuf/tree/master/src | |
ENV PROTOBUF_VERSION=3.1.0 | |
RUN apt-get --yes install autoconf automake libtool curl make g++ unzip | |
RUN wget https://github.com/google/protobuf/archive/v${PROTOBUF_VERSION}.zip \ | |
&& unzip v${PROTOBUF_VERSION}.zip \ | |
&& cd protobuf-${PROTOBUF_VERSION} \ | |
&& ./autogen.sh \ | |
&& ./configure \ | |
&& make \ | |
&& make check \ | |
&& make install \ | |
&& ldconfig \ | |
&& rm -Rf /root/protobuf-${PROTOBUF_VERSION} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment