-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
executable file
·61 lines (51 loc) · 1.53 KB
/
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
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 ubuntu:14.04
MAINTAINER Russell Kelly ([email protected])
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -qy --no-install-recommends wget python git
RUN apt-get install -qy openssh-server
RUN apt-get install -qy openssh-client
RUN apt-get install -qy python-pip
RUN apt-get install -qy python-dev
RUN apt-get install -qy libxml2-dev
RUN apt-get install -qy libxslt-dev
RUN apt-get install -qy libssl-dev
RUN apt-get install -qy libffi-dev
RUN apt-get install -qy sudo
RUN apt-get install -qy vim
RUN apt-get install -qy telnet
RUN apt-get install -qy curl
RUN apt-get install -qy shellinabox
RUN apt-get install -qy screen
RUN apt-get install -qy sshpass
RUN apt-get clean
RUN pip install flask
RUN pip install pyeapi
RUN pip install jsonrpc
RUN pip install jsonrpclib
RUN pip install pyyaml --upgrade
USER root
RUN useradd -m demo && echo "demo:demo" | chpasswd && adduser demo sudo
#RUN adduser --disabled-password --gecos '' demo
#RUN adduser demo sudo
RUN echo 'demo ALL=(ALL) NOPASSWD: /usr/bin/pkill' >> /etc/sudoers
RUN mkdir -p /home/demos/sr-demo
RUN mkdir -p /var/run/sshd
ENV HOME /home/demos/sr-demo
WORKDIR /home/demos/sr-demo
RUN git clone https://github.com/Exa-Networks/exabgp.git
WORKDIR /home/demos/sr-demo/exabgp
RUN git checkout master
RUN chmod +x setup.py
RUN sudo ./setup.py install
WORKDIR /home/demos/sr-demo
EXPOSE 179
EXPOSE 22
EXPOSE 5000
EXPOSE 5001
EXPOSE 4200
EXPOSE 5002
EXPOSE 5003
EXPOSE 4201
COPY exabgp.env /usr/local/etc/exabgp/exabgp.env
ENTRYPOINT sudo service ssh restart && bash