diff --git a/operator/src/controller/Dockerfile b/operator/src/controller/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..18801b81f8778e043569c4e9138ddfc5ca6553e8 --- /dev/null +++ b/operator/src/controller/Dockerfile @@ -0,0 +1,7 @@ +FROM onosproject/onos:2.7.0 + +COPY . ./ + +RUN chmod +x ./setup_controller.sh + +ENTRYPOINT ["./setup_controller.sh"] \ No newline at end of file diff --git a/operator/src/controller/idco-app-1.0.oar b/operator/src/controller/idco-app-1.0.oar new file mode 100644 index 0000000000000000000000000000000000000000..8c9ed2f5692f6e4e07fe91fd8c80289e0c8439cb Binary files /dev/null and b/operator/src/controller/idco-app-1.0.oar differ diff --git a/operator/src/controller/setup_controller.sh b/operator/src/controller/setup_controller.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9f1a51242fe2aee9b6ba0cf46b2188e84ada5eb --- /dev/null +++ b/operator/src/controller/setup_controller.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# turn on bash's job control +set -m + +# Start the primary process and put it in the background +./bin/onos-service server & + +sleep 90 + +# Start the helper process +./bin/onos-app localhost install idco-app-1.0.oar +./bin/onos-app localhost activate org.idco.app +./bin/onos-app localhost activate org.onosproject.drivers +./bin/onos-app localhost activate org.onosproject.lldpprovider +./bin/onos-app localhost activate org.onosproject.openflow-base +./bin/onos-app localhost activate org.onosproject.optical-model + + + + + + + + +# now we bring the primary process back into the foreground +# and leave it there +fg %1 \ No newline at end of file