-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
34 lines (28 loc) · 933 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
#
# Plexus SDN Controller Dockerfile
#
# Pull base image.
FROM pypy:2
# Grab latest version of plexus, unpack it, install dependencies, and install it.
RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget \
unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
wget -O /opt/plexus.zip "https://github.com/vjorlikowski/plexus/archive/master.zip" --no-check-certificate && \
unzip -q /opt/plexus.zip -d /opt && \
mv /opt/plexus-master /opt/plexus && \
rm /opt/plexus.zip && \
cd /opt/plexus && \
pip install -r pip-requires && \
pypy ./setup.py install
# Add the plexus user and group
RUN useradd -ms /sbin/nologin plexus
# Change ownership of the log directory
RUN chown -R plexus:plexus /var/log/plexus
# Define ports
EXPOSE 6633 8080
# Change user, and run.
USER plexus
ENTRYPOINT pypy /usr/local/bin/ryu run --config-file /etc/plexus/ryu.conf