forked from influxdata/kapacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_build_ubuntu32
53 lines (44 loc) · 1.35 KB
/
Dockerfile_build_ubuntu32
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
50
51
52
53
FROM 32bit/ubuntu:14.04
# This dockerfile capabable of the the minumum required
# to run the tests and nothing else.
MAINTAINER [email protected]
RUN apt-get update && apt-get install -y \
wget \
git \
mercurial \
build-essential \
autoconf \
automake \
libtool \
python-setuptools \
zip \
curl
# Install protobuf3
ENV PROTO_VERSION 3.0.0-beta-2
# Download and compile protoc
RUN wget https://github.com/google/protobuf/archive/v${PROTO_VERSION}.tar.gz && \
tar xf v${PROTO_VERSION}.tar.gz && \
rm -f v${PROTO_VERSION}.tar.gz && \
cd protobuf-${PROTO_VERSION} && \
./autogen.sh && \
./configure --prefix=/usr && \
make -j $(nproc) && \
make check && \
make install
# Install Python Protobuf3
RUN cd protobuf-${PROTO_VERSION}/python && \
python setup.py install;
# Install go
ENV GOPATH /root/go
ENV GO_VERSION 1.6
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 ; \
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 PATH $GOPATH/bin:$PATH
RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR
VOLUME $PROJECT_DIR
ENTRYPOINT [ "/root/go/src/github.com/influxdata/kapacitor/build.py" ]