forked from sonic-net/sonic-restapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.build
61 lines (53 loc) · 1.61 KB
/
Dockerfile.build
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
54
55
56
57
58
59
60
61
FROM debian:stretch
MAINTAINER [email protected]
## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y \
wget \
git \
build-essential \
debhelper \
dh-exec \
automake \
bison \
flex \
g++ \
git \
libboost-all-dev \
libevent-dev \
libssl-dev \
libtool \
make \
sudo \
pkg-config
COPY debs /debs
RUN dpkg -i /debs/libhiredis0.13_0.13.3-2_amd64.deb \
&& dpkg -i /debs/libhiredis-dev_0.13.3-2_amd64.deb \
&& dpkg -i /debs/libnl-3-200_3.2.27-2_amd64.deb \
&& dpkg -i /debs/libnl-genl-3-200_3.2.27-2_amd64.deb \
&& dpkg -i /debs/libnl-route-3-200_3.2.27-2_amd64.deb \
&& dpkg -i /debs/libswsscommon_1.0.0_amd64.deb \
&& dpkg -i /debs/libswsscommon-dev_1.0.0_amd64.deb
RUN rm -fr /debs
#RUN export VERSION=0.9.3 \
#&& cd /tmp \
# && wget http://archive.apache.org/dist/thrift/$VERSION/thrift-$VERSION.tar.gz \
# && mkdir -p /tmp/thrift \
# && tar -C /tmp/thrift -xzf thrift-$VERSION.tar.gz \
# && cd /tmp/thrift/thrift-$VERSION \
# && ./configure --enable-static \
# && make \
# && make install
RUN export VERSION=1.11.5 \
&& cd /tmp \
&& wget https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz \
&& rm -fr /go \
&& mkdir -m 0666 /go
ENV GOROOT=/usr/local/go
ENV PATH=$PATH:$GOROOT/bin
ENV GOPATH=/go
#RUN git clone https://github.com/apache/thrift.git $GOPATH/src/git.apache.org/thrift.git \
# && cd $GOPATH/src/git.apache.org/thrift.git \
# && git checkout 0dd823580c78a79ae9696eb9b3650e400fff140f