Skip to content

Commit 0407f95

Browse files
authored
Merge pull request #65 from bcgsc/feat/DEVSU-2701-update-and-test-pori-demo
Feat/devsu 2701 update and test pori demo
2 parents 9925915 + 4c2f8a0 commit 0407f95

File tree

11 files changed

+28
-51
lines changed

11 files changed

+28
-51
lines changed

.github/workflows/compose-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- run: mkdir -p databases/{postgres,orientdb}/{backup,data}
1313
- run: mkdir keys
14-
- run: docker-compose -f "docker-compose.dev.yml" up -d --build
14+
- run: docker compose -f "docker-compose.dev.yml" up -d --build
1515
- run: bash tests/test-docker-compose.sh
16-
- run: docker-compose -f "docker-compose.dev.yml" down
16+
- run: docker compose -f "docker-compose.dev.yml" down
1717
if: always()

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ will be updated on merge to the master branch of this repository.
2727
First, set up a virtual environment (Optional but recommended)
2828

2929
```bash
30-
python3 -m venv venv
30+
python3.8 -m venv venv
3131
source venv/bin/activate
3232
pip install -U setuptools pip
3333
```

demo/Dockerfile.auth

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM jboss/keycloak:16.1.1
1+
FROM quay.io/keycloak/keycloak:16.1.1
22
USER root
33
RUN mkdir -p /tmp/realm_data/
44
COPY demo/kc_setup_keyfile.sh /scripts/kc_setup_keyfile.sh

docker-compose.dev.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,8 @@ services:
3636
networks:
3737
- app-network
3838
volumes:
39-
- source: ./databases/orientdb/data
40-
target: /orientdb/databases
41-
type: bind
42-
- source: ./databases/orientdb/backup
43-
target: /orientdb/backup
44-
type: bind
39+
- orientdb_data:/orientdb/databases
40+
- orientdb_backup:/orientdb/backup
4541
graphkb_api:
4642
image: bcgsc/pori-graphkb-api:latest
4743
ports:
@@ -139,7 +135,7 @@ services:
139135
image: bcgsc/pori-ipr-api:latest
140136
command: npm start
141137
ports:
142-
- 8081:8080
138+
- 8082:8080
143139
environment:
144140
IPR_DATABASE_HOSTNAME: ipr_db
145141
IPR_DATABASE_NAME: ipr_demo
@@ -176,7 +172,7 @@ services:
176172
environment:
177173
KEYCLOAK_REALM: PORI
178174
# customize settings below
179-
API_BASE_URL: http://localhost:8081/api
175+
API_BASE_URL: http://localhost:8082/api
180176
GRAPHKB_URL: http://localhost:5000
181177
KEYCLOAK_URL: http://localhost:8888/auth
182178
PUBLIC_PATH: /
@@ -190,3 +186,6 @@ services:
190186
networks:
191187
app-network:
192188
driver: bridge
189+
volumes:
190+
orientdb_data:
191+
orientdb_backup:

docker-compose.prod.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
target: /orientdb/backup
1919
type: bind
2020
graphkb_api:
21-
image: bcgsc/pori-graphkb-api:v3.13.3
21+
image: bcgsc/pori-graphkb-api:v3.15.2
2222
ports:
2323
- 8080:8080
2424
environment:
@@ -48,7 +48,7 @@ services:
4848
timeout: 10s
4949
retries: 5
5050
graphkb_client:
51-
image: bcgsc/pori-graphkb-client:v4.2.2
51+
image: bcgsc/pori-graphkb-client:v4.3.2
5252
environment:
5353
KEYCLOAK_REALM: PORI
5454
KEYCLOAK_CLIENT_ID: GraphKB
@@ -65,7 +65,7 @@ services:
6565
- app-network
6666
restart: always
6767
ipr_db:
68-
image: bcgsc/pori-ipr-demodb:v7.2.1
68+
image: bcgsc/pori-ipr-demodb:v8.2.0
6969
restart: always
7070
environment:
7171
DATABASE_NAME: ipr_demo
@@ -107,7 +107,7 @@ services:
107107
- app-network
108108
restart: always
109109
ipr_api:
110-
image: bcgsc/pori-ipr-api:v7.2.1
110+
image: bcgsc/pori-ipr-api:v8.2.0
111111
ports:
112112
- 8081:8080
113113
environment:
@@ -141,7 +141,7 @@ services:
141141
timeout: 10s
142142
retries: 5
143143
ipr_client:
144-
image: bcgsc/pori-ipr-client:v6.6.3
144+
image: bcgsc/pori-ipr-client:v7.1.0
145145
environment:
146146
KEYCLOAK_REALM: PORI
147147
# customize settings below

docs/build_external.sh

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,15 @@
44
# clone the IPR python adapter if it does not exist, otherwise update
55
if ! [ -d docs/_pori_ipr_python ];
66
then
7-
git clone https://github.com/bcgsc/pori_ipr_python.git docs/_pori_ipr_python
8-
echo "hide: true" > docs/_pori_ipr_python/.pages
7+
git clone https://github.com/bcgsc/pori_python.git docs/_pori_python
8+
echo "hide: true" > docs/_pori_python/.pages
99
else
10-
cd docs/_pori_ipr_python
10+
cd docs/_pori_python
1111
git checkout master
1212
git pull
1313
cd ../..
1414
fi
1515

16-
# clone the GraphKB Python adapter if it does not exist, otherwise update
17-
if ! [ -d docs/_pori_graphkb_python ];
18-
then
19-
git clone https://github.com/bcgsc/pori_graphkb_python.git docs/_pori_graphkb_python
20-
echo "hide: true" > docs/_pori_graphkb_python/.pages
21-
else
22-
cd docs/_pori_graphkb_python
23-
git checkout master
24-
git pull
25-
cd ../..
26-
fi
27-
28-
2916
# clone the loaders repo if it does not exist, otherwise update
3017
if ! [ -d docs/graphkb/_pori_graphkb_loader ];
3118
then
@@ -40,8 +27,8 @@ fi
4027

4128
# now build the reference python module API files
4229
markdown_refdocs \
43-
docs/_pori_graphkb_python/graphkb \
44-
docs/_pori_ipr_python/ipr \
30+
docs/_pori_python/pori_python/graphkb \
31+
docs/_pori_python/pori_python/ipr \
4532
-o docs/developer_reference \
4633
--link
4734

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ software designed to support scalable precision oncology. The platform has two m
55
a graph knowledge base ([GraphKB](./graphkb)) and an integrated pipeline reporting application ([IPR](./ipr)). This site
66
contains central documentation for the platform as well as setup and installation instructions.
77

8-
Click on the menu icon (:material-menu:) to see a full table of contents for this site.
98

109
![pori server stack](./images/pori-server-stack.png)
1110

docs/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Most of the servers are auto-started together with docker-compose but the keyclo
99

1010
If this is not your first time setting up or running these instructions see the [update instructions](#updating-an-existing-demo-install) instead
1111

12-
Start by cloning this repository which contains the default docker compose configs (`docker-compose.yml` and `docker-compose.dev.yml`)
12+
Start by cloning this repository which contains the default docker compose configs (`docker-compose.dev.yml`)
1313

1414
```bash
1515
git clone https://github.com/bcgsc/pori.git
@@ -53,7 +53,7 @@ mkdir keys
5353
Next, use docker-compose to start the DB, API, and client servers. The paths/URLs in the docker-compose.yml file should be adjusted to match your deployment. In our demo deployment we have a proxy pass set up from the configured ports to handle the https layer
5454

5555
```bash
56-
docker-compose -f docker-compose.dev.yml up -d --build --remove-orphans
56+
docker compose -f docker-compose.dev.yml up -d --build --remove-orphans
5757
```
5858

5959
This will start the following services

docs/ipr_spec_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def spec_to_md(spec, optional_only=False, ignore_nested=False):
7979
return result
8080

8181

82-
specfile = os.path.join(os.path.dirname(__file__), '_pori_ipr_python/ipr/content.spec.json')
82+
specfile = os.path.join(os.path.dirname(__file__), '_pori_python/pori_python/ipr/content.spec.json')
8383
with open(specfile, 'r') as fh:
8484
spec = json.load(fh)
8585

docs/repos.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,9 @@ A developer reference for these packages including the function signatures and p
7676

7777
<div class='projects' markdown='1'>
7878

79-
- ### [GraphKB Python Adapter](https://github.com/bcgsc/pori_graphkb_python)
79+
- ### [Pori Python Adapter](https://github.com/bcgsc/pori_python)
8080

81-
![graphkb python](./images/graph-icon_outline.svg)
82-
83-
Python adapter package for querying the GraphKB API. See the related
84-
[user manual](../graphkb/python/docs) for instructions on incorporating
85-
this into custom scripts.
86-
87-
- ### [IPR Python Adapter](https://github.com/bcgsc/pori_ipr_python)
88-
89-
![ipr python](./images/wrench.svg)
81+
![pori python](./images/wrench.svg)
9082

9183
Python adapter for generating reports uploaded to the IPR API. This python tool takes in variant inputs as tab-delimited files and annotates them using GraphKB. The resulting output is uploaded to IPR as a report. Additional report content such as images and metadata can be passed to be included in the report upload.
9284

0 commit comments

Comments
 (0)