forked from John-Lin/docker-vcpe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (29 loc) · 1.27 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
FROM linton/docker-ryu
MAINTAINER John Lin <linton.tw@gmail.com>
# development tool, numpy and scipy prerequisite
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
gfortran \
libatlas-base-dev \
python-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
# Node.js 6.x Installation
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
apt-get install -y nodejs
# Install rpy-ryu server
RUN wget -O /opt/rpc-ryu.zip "https://github.com/hsnl-dev/rpc-ryu/archive/master.zip" --no-check-certificate && \
unzip -q /opt/rpc-ryu.zip -d /opt && \
mv /opt/rpc-ryu-master /opt/ryu/rpc-ryu && \
cd /opt/ryu/rpc-ryu && npm install
# Download vCPE hub
RUN wget -O /opt/vcpe-hub.zip "https://github.com/vcpe-io/vcpe-hub/archive/master.zip" --no-check-certificate && \
unzip -q /opt/vcpe-hub.zip -d /opt && \
mv /opt/vcpe-hub-master /opt/ryu
# vCPE hub dependencies package
RUN pip install -U networkx numpy scipy requests
# Clean up APT when done.
RUN apt-get clean && rm -rf /opt/vcpe-hub.zip /opt/rpc-ryu.zip
# Define working directory.
WORKDIR /opt/ryu
CMD ["DEBUG=rpc-ryu:*", "node", "./rpc-ryu/bin/www"]