-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
35 lines (28 loc) · 813 Bytes
/
Dockerfile
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
FROM golang:1.8 as buildstage
ENV GOPATH /go
WORKDIR /go
RUN go get github.com/osrg/gobgp/gobgp
RUN go get github.com/osrg/gobgp/gobgpd
# FROM bitnami/minideb:jessie as runstage
# FROM cumulusnetworks/quagga as runstage
FROM debian:jessie as runstage
COPY --from=buildstage /go/bin/gobgp /usr/bin
COPY --from=buildstage /go/bin/gobgpd /usr/bin
RUN apt-get update -y
RUN apt-get install -y \
iproute2 \
iputils-ping \
ldnsutils \
socat \
strace \
supervisor \
tcpdump \
telnet \
wget \
vim
# get FRR release
RUN wget https://github.com/FRRouting/frr/releases/download/frr-3.0.3/frr_3.0.3-1_debian8.1_amd64.deb
RUN dpkg -i frr_3.0.3-1_debian8.1_amd64.deb || apt-get install -fy
ADD entry-bgp.sh /usr/local/bin
RUN chmod 0755 /usr/local/bin/entry-bgp.sh
ENTRYPOINT [ "/usr/local/bin/entry-bgp.sh" ]