forked from influxdata/kapacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_build_ubuntu64
49 lines (40 loc) · 1.37 KB
/
Dockerfile_build_ubuntu64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ARG GO_VERSION
FROM quay.io/influxdb/cross-builder:go${GO_VERSION}-23321b2fc172da7a9730893d885056353c9b11ac
# This dockerfile is capabable of performing all
# build/test/package/deploy actions needed for Kapacitor.
MAINTAINER support@influxdb.com
RUN apt-get -qq update && apt-get -qq install -y \
software-properties-common \
unzip \
mercurial \
make \
ruby \
ruby-dev \
rpm \
zip \
python \
python-setuptools \
python3 \
python3-setuptools \
python3-boto \
autoconf \
automake \
libtool
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
RUN gem install fpm
# Install protobuf3 python library
# NOTE: PROTO_VERSION env var is inherited from the cross-builder image.
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 \
&& python2 setup.py install \
&& python3 setup.py install \
&& cd ../../ \
&& rm -rf /protobuf-${PROTO_VERSION} protobuf-python-${PROTO_VERSION}.tar.gz
ENV PROJECT_DIR /kapacitor
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR
# Configure local git
RUN git config --global user.email "support@influxdb.com"
RUN git config --global user.Name "Docker Builder"
ENTRYPOINT [ "/kapacitor/build.py" ]