-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
60 additions
and
140 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 |
---|---|---|
@@ -1,2 +1,56 @@ | ||
# semlookp-deployment | ||
Semantic Lookup Platform - Deployment Configuration | ||
# OLS4 backend deployment | ||
OLS4 backend - Deployment Configuration | ||
|
||
|
||
## Deploy OLS4 backend | ||
|
||
### Generate data | ||
|
||
Enter the OLS4 project. Do as described [here](https://github.com/EBISPOT/ols4?tab=readme-ov-file#deploying-ols4). | ||
|
||
In short: | ||
- copy the OWL or RDFS ontology file to the testcases folder | ||
- Then make a new config file for your ontology in dataload/configs (you can use efo.json as a template) | ||
- For the ontology_purl property in the config, use e.g. file:///opt/dataload/testcases/myontology.owl if your ontology is in testcases/myontology.owl | ||
|
||
```bash | ||
export OLS4_CONFIG=./dataload/configs/meshd-v1.json | ||
docker compose up | ||
``` | ||
|
||
The data is generated and saved locally in /var/lib/docker/volumes/<your_project_name>/_data | ||
|
||
### Create data archives for Solr and Neo4j | ||
```bash | ||
sudo tar --use-compress-program="pigz --fast --recursive" -cf /neo4j.tgz -C /var/lib/docker/volumes/<your project name>/_data . | ||
sudo tar --use-compress-program="pigz --fast --recursive" -cf /solr.tgz -C /var/lib/docker/volumes/<your project name>/_data . | ||
``` | ||
|
||
Eventually, the permissions need to be changed: | ||
```bash | ||
sudo chown -R username:username /neo4j.tgz | ||
sudo chown -R username:username /solr.tgz | ||
``` | ||
|
||
### Deploy ols4-dataserver | ||
```bash | ||
helm repo add semlookp-deployment https://zbmed.github.io/semlookp-deployment/ | ||
helm install ols4-dataserver semlookp-deployment/ols4-dataserver | ||
``` | ||
|
||
### Upload data to ols4-dataserver | ||
```bash | ||
kubectl cp /neo4j-meshd-v1.tgz ols4-dataserver-7d9d88cd86-n98fb:/usr/share/nginx/html/neo4j.tgz | ||
kubectl cp /solr-meshd-v1.tgz ols4-dataserver-7d9d88cd86-n98fb:/usr/share/nginx/html/solr.tgz | ||
``` | ||
|
||
### Deploy ols4-backend | ||
```bash | ||
helm install <your release name> \ | ||
--set-json='ingress.dns="<your domain>"' \ | ||
--set-json='imageTag="dev"' \ | ||
--set-json='backend.context="/ols4"' \ | ||
--set-json='backend.neo4jTarballUrl="http://ols4-dataserver/neo4j.tgz"' \ | ||
--set-json='backend.solrTarballUrl="http://ols4-dataserver/solr.tgz"' \ | ||
semlookp-deployment/k8s/ols4-backend | ||
``` |
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 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
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
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 |
---|---|---|
|
@@ -9,4 +9,6 @@ oidc: | |
bucket: | ||
backend: | ||
context: | ||
neo4jTarballUrl: | ||
solrTarballUrl: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
k8s/semlookp-ui/templates/semlookp-frontend-deployment.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.