Added dockerized deployment as third official deployment method. Created a new Docker...
[osm/vim-emu.git] / utils / docker / README.md
old mode 100644 (file)
new mode 100755 (executable)
index 1146367..f10e201
@@ -2,5 +2,22 @@
 
 This directory holds the Dockerfile to build son-emu as a docker container.
 This is an easy way to deploy son-emu.
-The docker container can be pulled from sonatanfv on Docker Hub.
-`docker pull sonatanfv/son-emu`
\ No newline at end of file
+To build this container:
+
+(container tag can be freely chosen)
+```
+docker build -t registry.sonata-nfv.eu:5000/son-emu .
+```
+
+To deploy this container:
+
+(choose an example topology to start in the emulator)
+```
+docker run -d -i --net='host' --pid='host' --privileged='true' --name 'son-emu' \
+    -v '/var/run/docker.sock:/var/run/docker.sock' \
+    -p 5000:5000 \
+    -p 9091:9091 \
+    -p 8081:8081 \
+    -p 5001:5001 \
+    registry.sonata-nfv.eu:5000/son-emu 'python src/emuvim/examples/sonata_simple_topology.py'
+```
\ No newline at end of file