Skip to content

Instantly share code, notes, and snippets.

@lukin0110
Created March 15, 2017 11:10
Show Gist options
  • Save lukin0110/af53596ad0ce4b15c141dc4e66f422e5 to your computer and use it in GitHub Desktop.
Save lukin0110/af53596ad0ce4b15c141dc4e66f422e5 to your computer and use it in GitHub Desktop.
Docker snippet to install a certain version of Google's protocol buffers
# 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