diff --git a/source/media/sdx-single3oxps.png b/source/media/sdx-single3oxps.png new file mode 100644 index 0000000..812569b Binary files /dev/null and b/source/media/sdx-single3oxps.png differ diff --git a/source/sdx_deploy_multi_server.rst b/source/sdx_deploy_multi_server.rst index b4dbb9b..38e6411 100644 --- a/source/sdx_deploy_multi_server.rst +++ b/source/sdx_deploy_multi_server.rst @@ -72,14 +72,14 @@ Deploying SDX-Controller .. code-block :: RST - docker run -d --name mq1 -e RABBITMQ_DEFAULT_USER=testsdx1 -e RABBITMQ_DEFAULT_PASS=testsdx1 -p 5672:5672 rabbitmq:latest + docker run -d --name mq1 --pull always -e RABBITMQ_DEFAULT_USER=testsdx1 -e RABBITMQ_DEFAULT_PASS=testsdx1 -p 5672:5672 rabbitmq:latest 2. Create an instance for MongoDB and configure a database/username/password: .. code-block :: RST - docker run -d --name mongo mongo:5.0 - docker exec -it mongo mongo --eval 'db.getSiblingDB("sdxctl").createUser({user: "sdxctl", pwd: "sdxctl", roles: [ { role: "dbAdmin", db: "sdxctl" } ]})' + docker run -d --name mongo --pull always mongo:7.0 + docker exec -it mongo mongosh --eval 'db.getSiblingDB("sdxctl").createUser({user: "sdxctl", pwd: "sdxctl", roles: [ { role: "dbAdmin", db: "sdxctl" } ]})' 3. Install dependencies and build sdx-controller: @@ -111,7 +111,9 @@ Deploying SDX-Controller .. code-block :: RST - docker run -d --name mininet -it --privileged -v /lib/modules:/lib/modules italovalcy/mininet:latest https://raw.githubusercontent.com/atlanticwave-sdx/sdx-continuous-development/main/data-plane/container-mininet/link-hosts.py 192.168.56.100 192.168.56.102 192.168.56.103 + curl -LO https://raw.githubusercontent.com/atlanticwave-sdx/sdx-continuous-development/main/data-plane/container-mininet/link-hosts.py + sed -i '1s/python/python3/g' link-hosts.py + docker run --pull always -d --name mininet -it --privileged -v /lib/modules:/lib/modules -v ./link-hosts.py:/link-hosts.py italovalcy/mininet:latest file:///link-hosts.py 192.168.56.100 192.168.56.102 192.168.56.103 Deploying OXP-Ampath ======================== @@ -120,9 +122,9 @@ Deploying OXP-Ampath .. code-block :: RST - docker run -d --name mongo mongo:5.0 - docker exec -it mongo mongo --eval 'db.getSiblingDB("amlight").createUser({user: "amlight", pwd: "amlight", roles: [ { role: "dbAdmin", db: "amlight" } ]})' - docker exec -it mongo mongo --eval 'db.getSiblingDB("sdx_lc").createUser({user: "sdxlcmongo_user", pwd: "sdxlcmongo_pw", roles: [ { role: "dbAdmin", db: "sdx_lc" } ]})' + docker run --pull always -d --name mongo mongo:7.0 + docker exec -it mongo mongosh --eval 'db.getSiblingDB("amlight").createUser({user: "amlight", pwd: "amlight", roles: [ { role: "dbAdmin", db: "amlight" } ]})' + docker exec -it mongo mongosh --eval 'db.getSiblingDB("sdx_lc").createUser({user: "sdxlcmongo_user", pwd: "sdxlcmongo_pw", roles: [ { role: "dbAdmin", db: "sdx_lc" } ]})' 2. Install dependencies and build Kytos-ng OXPO: @@ -131,7 +133,7 @@ Deploying OXP-Ampath sudo apt-get install -y git vim jq git clone https://github.com/atlanticwave-sdx/kytos-sdx cd kytos-sdx - docker build -t kytos-sdx . + docker build --pull -t kytos-sdx . 3. Create an instance for Kytos-ng OXPO based on a set of environment variables: @@ -159,6 +161,7 @@ Deploying OXP-Ampath docker build -t sdx-lc . cat >amlight-sdx-lc.env <sax-sdx-lc.env <tenet-sdx-lc.env <