Skip to content

Instantly share code, notes, and snippets.

@cthoyt
Last active July 20, 2017 10:32
Show Gist options
  • Save cthoyt/6b77644280d2dd434d70f4e07729edf6 to your computer and use it in GitHub Desktop.
Save cthoyt/6b77644280d2dd434d70f4e07729edf6 to your computer and use it in GitHub Desktop.
Update BEL Resources on Artifactory with Selventa Generator
#!/usr/bin bash
mkdir output
# Download and install pybel-tools
git clone https://github.com/pybel/pybel-tools
cd pybel-tools
python3 -m pip install --user .
cd ..
# Download resource generator repository
git clone https://github.com/pybel/resource-generator
# Download and output namespaces
./resource-generator/gp_baseline.py -vv -n ./output
# Download and output annotations
./resource-generator/belanno.py -n ./output
# Upload resources to artifactory
python3 -m pybel_tools upload_resources ./output
@cthoyt
Copy link
Author

cthoyt commented Jul 20, 2017

This script should do the job of downloading all of the scripts, running them, and deploying it to artifactory, assuming the environment variables ARTY_USERNAME and ARTY_PASSWORD are set @cebel @jd-s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment