forked from influxdata/kapacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to protobuf 3.0.0 (influxdata#821)
* upgrade to protobuf 3.0.0 * changelog
- Loading branch information
Nathaniel Cook
authored
Aug 22, 2016
1 parent
1189b3d
commit 8180f4b
Showing
8 changed files
with
58 additions
and
55 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ MAINTAINER [email protected] | |
|
||
RUN apt-get update && apt-get install -y \ | ||
wget \ | ||
unzip \ | ||
git \ | ||
mercurial \ | ||
build-essential \ | ||
|
@@ -17,14 +18,22 @@ RUN apt-get update && apt-get install -y \ | |
zip \ | ||
curl | ||
|
||
# Install protobuf3 | ||
ADD install-deps.sh /tmp/ | ||
RUN INSTALL_PREFIX=/usr /tmp/install-deps.sh | ||
RUN rm /tmp/install-deps.sh | ||
# Install protobuf3 protoc binary | ||
ENV PROTO_VERSION 3.0.0 | ||
RUN wget https://github.com/google/protobuf/releases/download/v${PROTO_VERSION}/protoc-${PROTO_VERSION}-linux-x86_32.zip\ | ||
&& unzip -j protoc-${PROTO_VERSION}-linux-x86_32.zip bin/protoc -d /bin \ | ||
rm protoc-${PROTO_VERSION}-linux-x86_64.zip | ||
|
||
# Install protobuf3 python library | ||
RUN wget https://github.com/google/protobuf/releases/download/v${PROTO_VERSION}/protobuf-python-${PROTO_VERSION}.tar.gz \ | ||
&& tar -xf protobuf-python-${PROTO_VERSION}.tar.gz \ | ||
&& cd /protobuf-${PROTO_VERSION}/python \ | ||
&& python setup.py install \ | ||
&& rm -rf /protobuf-${PROTO_VERSION} protobuf-python-${PROTO_VERSION}.tar.gz | ||
|
||
# Install go | ||
ENV GOPATH /root/go | ||
ENV GO_VERSION 1.6.2 | ||
ENV GO_VERSION 1.6.3 | ||
ENV GO_ARCH 386 | ||
RUN wget https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz; \ | ||
tar -C /usr/local/ -xf /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz ; \ | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ MAINTAINER [email protected] | |
|
||
RUN apt-get update && apt-get install -y \ | ||
wget \ | ||
unzip \ | ||
git \ | ||
mercurial \ | ||
build-essential \ | ||
|
@@ -17,10 +18,18 @@ RUN apt-get update && apt-get install -y \ | |
zip \ | ||
curl | ||
|
||
# Install protobuf3 | ||
ADD install-deps.sh /tmp/ | ||
RUN INSTALL_PREFIX=/usr /tmp/install-deps.sh | ||
RUN rm /tmp/install-deps.sh | ||
# Install protobuf3 protoc binary | ||
ENV PROTO_VERSION 3.0.0 | ||
RUN wget https://github.com/google/protobuf/releases/download/v${PROTO_VERSION}/protoc-${PROTO_VERSION}-linux-x86_64.zip \ | ||
&& unzip -j protoc-${PROTO_VERSION}-linux-x86_64.zip bin/protoc -d /bin \ | ||
rm protoc-${PROTO_VERSION}-linux-x86_64.zip | ||
|
||
# Install protobuf3 python library | ||
RUN wget https://github.com/google/protobuf/releases/download/v${PROTO_VERSION}/protobuf-python-${PROTO_VERSION}.tar.gz \ | ||
&& tar -xf protobuf-python-${PROTO_VERSION}.tar.gz \ | ||
&& cd /protobuf-${PROTO_VERSION}/python \ | ||
&& python setup.py install \ | ||
&& rm -rf /protobuf-${PROTO_VERSION} protobuf-python-${PROTO_VERSION}.tar.gz | ||
|
||
# Setup env | ||
ENV GOPATH /root/go | ||
|
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
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.