1 FROM socketplane/busybox:latest
2 MAINTAINER The SocketPlane Team <support@socketplane.io>
5 ENV OVS openvswitch_${OVS_VERSION}
7 # Configure supervisord
8 RUN mkdir -p /var/log/supervisor/
9 ADD supervisord.conf /etc/
10 RUN mkdir -p /var/log/supervisor/
11 RUN mkdir -p /etc/openvswitch
13 # Install supervisor_stdout
14 COPY supervisor-stdout-0.1.1.tar.gz /opt/
16 RUN tar -xzvf supervisor-stdout-0.1.1.tar.gz && \
17 mv supervisor-stdout-0.1.1 supervisor-stdout && \
18 rm supervisor-stdout-0.1.1.tar.gz && \
19 cd supervisor-stdout && \
20 python setup.py install -q
24 COPY ovs_package/${OVS}.tgz /
27 RUN tar -xzvf ${OVS}.tgz &&\
28 mv $OVS openvswitch &&\
29 cp -r openvswitch/* / &&\
32 ADD configure-ovs.sh /usr/local/share/openvswitch/
33 RUN mkdir -p /usr/local/var/run/openvswitch
35 COPY libcrypto.so.10 /usr/lib
36 COPY libssl.so.10 /usr/lib
37 COPY libgssapi_krb5.so.2 /usr/lib
38 COPY libkrb5.so.3 /usr/lib
39 COPY libcom_err.so.2 /usr/lib
40 COPY libk5crypto.so.3 /usr/lib
41 COPY libkrb5support.so.0 /usr/lib
42 COPY libkeyutils.so.1 /usr/lib
43 COPY libselinux.so.1 /usr/lib
44 COPY libpcre.so.1 /usr/lib
45 COPY liblzma.so.5 /usr/lib
49 RUN ovsdb-tool create /etc/openvswitch/conf.db /usr/local/share/openvswitch/vswitch.ovsschema
50 # Put the OVS Python modules on the Python Path
51 RUN cp -r /usr/local/share/openvswitch/python/ovs /usr/lib/python2.7/site-packages/ovs
52 CMD ["/usr/bin/supervisord"]