Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into dev
  • Loading branch information
tokebe committed Oct 19, 2023
2 parents 61ec856 + 2e7f73d commit 68beede
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deploy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions deploy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ spec:
serviceAccountName: {{ include "bte.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
Expand Down
16 changes: 12 additions & 4 deletions deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ serviceAccount:
name: ""

service:
type: NodePort
type: ClusterIP
port: 80

ingress:
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/tags: Name=BTE_ALB_TAG_VALUE,Environment=ENVIRONMENT_TAG_VALUE
alb.ingress.kubernetes.io/load-balancer-attributes: idle_timeout.timeout_seconds=660
alb.ingress.kubernetes.io/security-groups: translator-ci-alb-http-sg
Expand All @@ -52,7 +53,7 @@ env:
# toleration to node taint such that this deployment can be scheduled on the tainted node while others without the toleration can not
tolerations:
- key : "transltr"
value : "bte"
value : "managed-app"
operator : "Equal"
effect : "NoSchedule"

Expand All @@ -66,7 +67,7 @@ affinity:
- key: application
operator: In
values:
- bte
- managed-app
# this ensures only ONE pod will run on each node
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -75,5 +76,12 @@ affinity:
- key: app.kubernetes.io/name
operator: In
values:
- bte
- managed-app
topologyKey: "kubernetes.io/hostname"
resources:
requests:
memory: 56Gi
cpu: 13000m
limits:
memory: 58Gi
cpu: 14000m
4 changes: 4 additions & 0 deletions docs/INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ This repository intentionally includes a set of VSCode task and debug configs fo

If you want to run BTE with debug logging and async support, with VSCode's debugger attaching to BTE so you can set breakpoints, catch on errors, etc., Use "Run and Debug" > "Build w/ Cache" and hit the play button. A number of other configurations are supplied, you can explore them in [the launch.json file.](../.vscode/launch.json)

### Updating
In this base package (biothings_explorer), run the command `npm run pull`, which will pull the latest code from this module and all submodules. Note any warnings or errors in the console logs.


## Usage

Now that you have an instance of BTE up and running, you can POST queries to `http://<HOST>:3000/v1/query`. See [Usage](./USAGE.md) for more information.
Expand Down
23 changes: 23 additions & 0 deletions examples/v1.1/inferred_query_drug_treats_disease.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"message": {
"query_graph": {
"nodes": {
"n0": {
"categories": ["biolink:ChemicalEntity"]
},
"n1": {
"categories": ["biolink:Disease"],
"ids": ["MONDO:0800044"]
}
},
"edges": {
"e01": {
"subject": "n0",
"object": "n1",
"predicates": ["biolink:treats"],
"knowledge_type": "inferred"
}
}
}
}
}
6 changes: 3 additions & 3 deletions src/web-app/src/stores/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ export const useExamplesStore = defineStore({
store.loading = false;
console.log(res.data)
self.jobs.unshift({
'id': res.data.id,
'id': res.data.job_id,
'date': this.getDateRightNow(),
'url': res.data.url,
'url': res.data.job_url,
'description': description
});
self.message = `A new job ID has been created: ${res.data.id} `
self.message = `A new job ID has been created: ${res.data.job_id} `
self.updateJobs();
}).catch(err=>{
store.loading = false;
Expand Down

0 comments on commit 68beede

Please sign in to comment.