From b59b8bd1e515d9f5032a414eb0fb47d675a03e60 Mon Sep 17 00:00:00 2001 From: Francesco Cremonesi <francesco.cremonesi@inria.fr> Date: Fri, 23 Jun 2023 12:53:01 +0200 Subject: [PATCH] Simplify node run instructions --- fedbiomed-tutorial/aws-instructions.md | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/fedbiomed-tutorial/aws-instructions.md b/fedbiomed-tutorial/aws-instructions.md index 39518aa..4b0172b 100644 --- a/fedbiomed-tutorial/aws-instructions.md +++ b/fedbiomed-tutorial/aws-instructions.md @@ -25,29 +25,22 @@ In today's tutorial, you will be launching one researcher and two node component ### The Fed-BioMed node -Open a terminal in Jupyterhub and navigate to the fedbiomed folder +We have prepare two nodes for you, called `site_1.ini` and `site_2.ini`. +To run them, open two terminals in Jupyterhub and navigate to the fedbiomed folder in both of them ```bash cd $HOME/fedbiomed ``` -Now, choose a name for your node. In this example, we will use the name `node-name`. Remember that whenever you execute a command for a node, you must specify `config node-name` to tell Fed-BioMed that you are referring to this node specifically. - -First, we initialize the node by creating a configuration: +Then, in the first terminal execute ```bash -./scripts/fedbiomed_run node config node-name configuration create +./scripts/fedbiomed_run node config site_1.ini start ``` - -To add a dataset to the node, the tutorial will show you how to use the GUI. For command line, execute the following code and follow the instructions +while in the other terminal you should execute ```bash -./scripts/fedbiomed_run node config node-name add +./scripts/fedbiomed_run node config site_2.ini start ``` -Finally, you may run the node with -```bash -./scripts/fedbiomed_run node config node-name start -``` -Note that after this command, this terminal is fully dedicated to running the node, and you may note execute other commands on it unless you stop the node's execution. +Note that after this command, the terminal is fully dedicated to running the node, and you may not execute other commands on that terminal unless you stop the node's execution beforehand. To stop the node, use the `Ctrl+C` combination. - -- GitLab