-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from EBISPOT/dev
update stable branch with plenty of updates from dev branch
- Loading branch information
Showing
23 changed files
with
213 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build & publish OXO images | ||
|
||
on: | ||
push: | ||
branches: [ "dev", "stable" ] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push OXO Docker image | ||
run: | | ||
docker build -t ghcr.io/ebispot/oxo-loader:${{ github.sha }} -f ./oxo-loader/Dockerfile . | ||
docker build -t ghcr.io/ebispot/oxo-indexer:${{ github.sha }} -f ./oxo-indexer/Dockerfile . | ||
docker build -t ghcr.io/ebispot/oxo-web:${{ github.sha }} -f ./oxo-web/Dockerfile . | ||
docker tag ghcr.io/ebispot/oxo-loader:${{ github.sha }} ghcr.io/ebispot/oxo-loader:${{ github.ref_name }} | ||
docker tag ghcr.io/ebispot/oxo-indexer:${{ github.sha }} ghcr.io/ebispot/oxo-indexer:${{ github.ref_name }} | ||
docker tag ghcr.io/ebispot/oxo-web:${{ github.sha }} ghcr.io/ebispot/oxo-web:${{ github.ref_name }} | ||
docker push --all-tags ghcr.io/ebispot/oxo-loader | ||
docker push --all-tags ghcr.io/ebispot/oxo-indexer | ||
docker push --all-tags ghcr.io/ebispot/oxo-web |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
logging.level.org.springframework: ERROR | ||
logging.level.org.neo4j.ogm: ERROR | ||
logging.level.uk.ac.ebi.spot: INFO | ||
logging.level.org.springframework=ERROR | ||
logging.level.org.neo4j.ogm=ERROR | ||
logging.level.uk.ac.ebi.spot=INFO | ||
|
||
oxo.neo.driver=org.neo4j.ogm.drivers.http.driver.HttpDriver | ||
#oxo.neo.driver=org.neo4j.ogm.drivers.bolt.driver.BoltDriver | ||
oxo.neo.uri=http://neo4j:dba@localhost:7474 | ||
#bolt://neo4j:dba@localhost:7688 | ||
|
||
spring.data.solr.host: http://localhost:8983/solr | ||
spring.data.solr.host=http://localhost:8983/solr | ||
|
||
oxo.indexer.chunks 100000 | ||
oxo.indexer.chunks=100000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
#module load python-3.10.2-gcc-9.3.0-gswnsij | ||
pip3 install -r requirements.txt | ||
|
||
echo 1 get datasources from OLS | ||
|
||
python3 OlsDatasetExtractor.py -c config.ini -i idorg.xml -d datasources.csv | ||
|
||
echo 2 Load datasources into neo4j | ||
|
||
scp datasources.csv $NEO4J_HOME/import/ | ||
python3 OxoNeo4jLoader.py -W -d datasources.csv -c config.ini | ||
|
||
echo 3 get the OLS mappings | ||
|
||
python3 OlsMappingExtractor.py -c config.ini -t ols_terms.csv -m ols_mappings.csv | ||
|
||
echo 4 load the OLS data into Neo4j | ||
|
||
scp ols_terms.csv $NEO4J_HOME/import | ||
scp ols_mappings.csv $NEO4J_HOME/import | ||
python3 OxoNeo4jLoader.py -c config.ini -t ols_terms.csv -m ols_mappings.csv | ||
|
||
|
||
# get the umls mappings | ||
echo 5 get the umls mappings | ||
|
||
#bsub -Is -M 30000 -R "rusage[mem=30000]" "singularity exec -B /nfs/production/parkinso/spot/oxo/dev/loader:/opt/config -B /nfs/production/parkinso/spot/oxo/dev/import:/opt/oxo-loader/data docker://ebispot/oxo-loader:$OXO_LOADER_VERSION python /opt/oxo-loader/UmlsMappingExtractor.py -c /opt/config/config.ini -t /opt/oxo-loader/data/umls_terms.csv -m /opt/oxo-loader/data/umls_mappings.csv" | ||
|
||
# load the UMLS data into neo4j | ||
echo 6 load the UMLS data into neo4j | ||
|
||
#bsub -Is -M 30000 -R "rusage[mem=30000]" "singularity exec -B /nfs/production/parkinso/spot/oxo/dev/loader:/opt/config docker://ebispot/oxo-loader:$OXO_LOADER_VERSION python /opt/oxo-loader/OxoNeo4jLoader.py -c /opt/config/config.ini -t umls_terms.csv -m umls_mappings.csv" | ||
|
||
# get the LOINC mappings | ||
echo 7 get the LOINC mappings | ||
|
||
#bsub -Is -M 30000 -R "rusage[mem=30000]" "singularity exec -B /nfs/production/parkinso/spot/oxo/dev/loader:/opt/config -B /nfs/production/parkinso/spot/oxo/dev/import:/opt/oxo-loader/data docker://ebispot/oxo-loader:$OXO_LOADER_VERSION python /opt/oxo-loader/LoincMappingExtractor.py -c /opt/config/config.ini -t /opt/oxo-loader/data/loinc_terms.csv -m /opt/oxo-loader/data/loinc_mappings.csv" | ||
|
||
# load the LOINC data into neo4j | ||
echo 8 load the LOINC data into neo4j | ||
|
||
#bsub -Is -M 30000 -R "rusage[mem=30000]" "singularity exec -B /nfs/production/parkinso/spot/oxo/dev/loader:/opt/config docker://ebispot/oxo-loader:$OXO_LOADER_VERSION python /opt/oxo-loader/OxoNeo4jLoader.py -c /opt/config/config.ini -t loinc_terms.csv -m loinc_mappings.csv" |
Oops, something went wrong.