You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

 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)
  • If using localhost, then add and update r2d2 and r2d2-data
  • 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 username>"
  • $> export R2D2_API_KEY="<your r2d2 api key>"
  • If running localhost 
    • $> export R2D2_USER="<your r2d2 username>"
    • $> export R2D2_API_KEY="<your r2d2 api key>"
    • $> export R2D2_SERVER_HOST="http://localhost"

    • $> export R2D2_SERVER_PORT="8080"


  • No labels