From e4398452388614810d633ebb6128a93ff683f3a3 Mon Sep 17 00:00:00 2001 From: girisairam450 <35138807+girisairam450@users.noreply.github.com> Date: Thu, 15 Dec 2022 20:12:44 +0530 Subject: [PATCH 1/2] parent broken link fix and run command path fix - Parent Topic link is fixed with relative path. - run-all script command path correction. --- examples/reverse-proxy/mnist/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/reverse-proxy/mnist/README.md b/examples/reverse-proxy/mnist/README.md index 706e7438..9a40e746 100644 --- a/examples/reverse-proxy/mnist/README.md +++ b/examples/reverse-proxy/mnist/README.md @@ -49,10 +49,10 @@ SNo | FQDN | IP with Port | cd swarm-learning ``` -2. Run the `run-all` script from the `swarm-learning` folder with `APLS IP` argument and `wait time for sn`. +2. Run the `run-all` script from the `swarm-learning` folder with `APLS IP` argument and `Host IP`. ``` {#CODEBLOCK_LQT_DNY_NVB} - .\examples\reverse-proxy\run-all 172.1.1.1 172.1.1.1 + .\examples\reverse-proxy\mnist\run-all 172.1.1.1 172.1.1.1 ``` First argument `APLS_IP` is the ip address of the APLS and is a mandatory parameter. In the above command this argument is passed as current host ip assuming apls is running on the same host. Second argument `Host_IP` is the ip address of the current host and is used for the nginx and dns configurations. @@ -72,7 +72,7 @@ SNo | FQDN | IP with Port | 4. On host-1, to clean up, run the `scripts/bin/stop-swarm` script on the host system to stop and remove the swarm container nodes of the previous run. If needed, take a backup of the container logs. As this example builds and starts Bind9 and Nginx, please remove their respective images and containers. Finally, remove docker volume (`sl-cli-lib`) and delete the `workspace` directory.. -**Parent topic:**[Examples using reverse proxy](GUID-DD2A624E-30B8-4FCD-A23F-014AE0D76452.md) +**Parent topic:**[Examples using reverse proxy](../README.md) [1] Y. LeCun, C. Cortes and C. J. Burges, "THE MNIST DATABASE," [Online]. Available: [http://yann.lecun.com/exdb/mnist/](http://yann.lecun.com/exdb/mnist/) From ea97a188c95f949344cb12390a687653155a9b32 Mon Sep 17 00:00:00 2001 From: Giri Date: Thu, 15 Dec 2022 14:59:27 +0000 Subject: [PATCH 2/2] echo statement corrected --- examples/reverse-proxy/mnist/run-all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/reverse-proxy/mnist/run-all b/examples/reverse-proxy/mnist/run-all index b443fbfe..19c4cbcd 100755 --- a/examples/reverse-proxy/mnist/run-all +++ b/examples/reverse-proxy/mnist/run-all @@ -18,8 +18,8 @@ APLS_IP=$1 echo "APLS IP: "${APLS_IP} Host_IP=$2 -[[ -z "$2" ]] && { echo "IP address of the Host 1 is empty" ; exit 1; } -echo "HOST 1 IP: "${Host_IP} +[[ -z "$2" ]] && { echo "IP address of the Host is empty" ; exit 1; } +echo "HOST IP: "${Host_IP} if [[ -f "$(pwd)/scripts/bin/common" ]]