Commit b2e882ec authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Ryu-OpenFlow CI/CD test

- Corrected mininet dockerfile
parent 7c89ed58
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -14,6 +14,9 @@

FROM ubuntu:22.04

USER root
WORKDIR /root

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
    apt-get install -y --no-install-recommends iproute2 net-tools openvswitch-switch ca-certificates && \
@@ -22,5 +25,9 @@ RUN apt-get update && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

COPY src/tests/ryu-openflow/custom_pentagon_topology.py /opt/custom_pentagon_topology.py
CMD ["python3", "/opt/custom_pentagon_topology.py"]
COPY src/tests/ryu-openflow/mininet/custom_pentagon_topology.py /opt/custom_pentagon_topology.py
COPY src/tests/ryu-openflow/mininet/mininet-entrypoint.sh /mininet-entrypoint.sh

EXPOSE 6633 6653 6640

ENTRYPOINT ["/mininet-entrypoint.sh"]
+8 −0
Original line number Diff line number Diff line
#!/bin/bash

service openvswitch-switch start
ovs-vsctl set-manager ptcp:6640

python3 /opt/custom_pentagon_topology.py

service openvswitch-switch stop