Please follow these instructions to transition your Skylab environment to use R2D2 V3.
1. Update workflow component repositories
- CD into $JEDI_WORKFLOW
$> cd $JEDI_WORKFLOW
- Update ewok and skylab (optionally add and update jedi-tools and jedi-docs) @develop
- If using localhost, then add and update r2d2 and r2d2-data@develop
- Delete solo
$> rm -Rf solo
- Clone r2d2-client from https://github.com/JCSDA-internal/r2d2-client
2. Create a new python virtual environment
- Run your local setup shell script
- CD into $WORKFLOW_ROOT
$> cd $WORKFLOW_ROOT
- Deactivate your current venv
$> deactivate
- Remove your virtual environment
$> rm -Rf venv
- Create a new virtual environment using the stack-python
$> python3 -m venv venv
- Activate the new virtual environment
$> source venv/bin/activate
3. Install workflow components
CD into $JEDI_WORKFLOW
$> cd $JEDI_WORKFLOW
- Install each repo: ewok, r2d2-client, and simobs
$> cd ewok
$> python3 -m pip install .
$> cd ..
repeat for r2d2-client and simobs
4. Add new environmental variables
$> export R2D2_USER="<your r2d2 user name>"
$> export R2D2_API_KEY="<your r2d2 api key>"
- If running localhost
$> export R2D2_USER="localhost"
$> export R2D2_API_KEY="localhost"
$> export R2D2_SERVER_HOST="http://localhost"
$> export R2D2_SERVER_PORT="8080"
5. If localhost, install and start the R2D2 server
- vim $JEDI_WORKFLOW/r2d2/server/README.md
- Follow instructions at
"Localhost Docker with Database"