From 5e0ad3e8439c81c739f40d5cc60f4849e80ada41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Wed, 11 Oct 2023 10:06:48 +0200 Subject: [PATCH] setup: fix virtual environment Uses production version of `reana-client` that is now sufficient. Uses production virtual environment on LXPLUS instead of personal one. Adds `reana-client` testing after installation. Fixes shell command and output markup. --- _episodes/02-first-example.md | 3 --- setup.md | 30 +++++++++++++++++++++--------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/_episodes/02-first-example.md b/_episodes/02-first-example.md index aa6f447..03b9b38 100644 --- a/_episodes/02-first-example.md +++ b/_episodes/02-first-example.md @@ -214,12 +214,9 @@ Options: The REANA client will interact with a remote REANA cluster. It knows to which REANA cluster it connects by means of the following environment variable: ```bash -$ source /afs/cern.ch/user/r/reana/public/bin/reana/activate/ $ export REANA_SERVER_URL=https://reana.cern.ch ``` -The source command is for lxplus users only. - In order to authenticate to REANA, you need to generate a token. > ## Exercise: Obtain a token. diff --git a/setup.md b/setup.md index 9dc3a18..1cc3459 100644 --- a/setup.md +++ b/setup.md @@ -10,21 +10,33 @@ This lesson teaches the principles of containerised scientific workflows by mean The participants should either install [reana-client](https://pypi.org/project/reana-client/) on their laptops: +~~~bash +virtualenv ~/.virtualenvs/reana +source ~/.virtualenvs/reana/bin/activate +pip install reana-client ~~~ -$ virtualenv ~/.virtualenvs/reana -$ source ~/.virtualenvs/reana/bin/activate -$ pip install --pre reana-client +{: .source} + +Alternatively, the participants can log into CERN's LXPLUS cluster using `ssh lxplus.cern.ch` and +activate a pre-existing environment there: + +~~~bash +source /afs/cern.ch/user/r/reana/public/reana/bin/activate ~~~ -{: .bash} +{: .source} -Alternatively, the participants can log into CERN's LXPLUS cluster and use a pre-existing -environment there: +After installation of `reana-client`, please check whether the client works by asking for its +version: + +~~~bash +reana-client version +~~~ +{: .source} ~~~ -$ ssh lxplus.cern.ch -lxplus> source ~simko/public/reana/bin/activate +0.9.1 ~~~ -{: .bash} +{: .output} ---