-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: nightly builds, now with rust for flux. (#2558)
- Loading branch information
Showing
6 changed files
with
56 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM ubuntu:18.04 | ||
ARG GO_VERSION | ||
FROM quay.io/influxdb/cross-builder:go${GO_VERSION}-latest | ||
|
||
# This dockerfile is capabable of performing all | ||
# build/test/package/deploy actions needed for Kapacitor. | ||
|
@@ -41,35 +42,23 @@ RUN wget -q https://github.com/google/protobuf/releases/download/v${PROTO_VERSIO | |
# Install protobuf3 python library | ||
RUN wget -q 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 \ | ||
&& cd protobuf-${PROTO_VERSION}/python \ | ||
&& python2 setup.py install \ | ||
&& python3 setup.py install \ | ||
&& cd ../../ \ | ||
&& rm -rf /protobuf-${PROTO_VERSION} protobuf-python-${PROTO_VERSION}.tar.gz | ||
|
||
# Install rust | ||
ENV PATH "/root/.cargo/bin:$PATH" | ||
RUN curl --proto '=https' --tlsv1.2 --tls-max 1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y && \ | ||
cargo --help | ||
|
||
# Install go | ||
ENV GOPATH /root/go | ||
ENV GO_VERSION 1.15.5 | ||
ENV GO_ARCH amd64 | ||
RUN wget -q 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 ; \ | ||
rm /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz | ||
ENV PATH /usr/local/go/bin:$PATH | ||
ENV PROJECT_DIR $GOPATH/src/github.com/influxdata/kapacitor | ||
ENV PKG_CONFIG $PROJECT_DIR/pkg-config.sh | ||
#ENV PKG_CONFIG $PROJECT_DIR/pkg-config.sh | ||
ENV PATH $GOPATH/bin:$PATH | ||
RUN mkdir -p $PROJECT_DIR | ||
WORKDIR $PROJECT_DIR | ||
|
||
VOLUME $PROJECT_DIR | ||
VOLUME /root/go/src | ||
VOLUME /go/src | ||
|
||
# Configure local git | ||
RUN git config --global user.email "[email protected]" | ||
RUN git config --global user.Name "Docker Builder" | ||
|
||
ENTRYPOINT [ "/root/go/src/github.com/influxdata/kapacitor/build.py" ] | ||
ENTRYPOINT [ "/go/src/github.com/influxdata/kapacitor/build.py" ] |
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
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
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