Skip to content

Commit 0a3deaa

Browse files
Mount point
1 parent d019c1e commit 0a3deaa

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ is `my_oxo2_config.json`, set OXO2_CONFIG=./my_oxo2_config.json by running `expo
1616
1. To run OxO2 using docker, run `docker compose up`. This will start Solr, the OxO2 backend and OxO2 frontend. The frontend
1717
will be available at `http://localhost:8080`, the backend at `http://localhost:8081` and Solr at `http://localhost:8983`.
1818
2. To stop OxO2 run `docker compose down`.
19-
https://cursor.com/
2019

2120
## Running OxO2 locally in Kubernetes using Minikube
2221
### Prerequisites
@@ -28,7 +27,7 @@ https://cursor.com/
2827

2928
### Mount your data into minikube
3029
1. Mount into minikube:
31-
`minikube mount --port=39000 $SOLR_HOME:/mnt/solr-data`.
30+
`minikube mount --port=39000 $SOLR_HOME:/mnt/oxo/solr-data`.
3231

3332
***Note***: You may need to allow port 39000 through firewall. If so, run: `sudo ufw allow 39000/tcp`.
3433

@@ -43,8 +42,9 @@ helm install oxo2 ./k8chart-local/oxo2 -n ontotools --create-namespace
4342
```
4443
kubectl port-forward deployment/oxo2-frontend 8080:8080 -n ontotools
4544
kubectl port-forward deployment/oxo2-backend 8081:8081 -n ontotools
45+
kubectl port-forward deployment/oxo2-solr 8983:8983 -n ontotools
4646
```
47-
and the point your browser to http://localhost:8080. The OxO2 backend will be accessible at http://localhost:8081/
47+
and the point your browser to http://localhost:8080. The OxO2 backend will be accessible at http://localhost:8081/ and solr at http://localhost:8983.
4848

4949

5050
### To undeploy
@@ -90,13 +90,13 @@ and change to OxO2 source directory.
9090
4. Change to dataload directory: `cd ./oxo2-dataload`
9191
5. Run OxO2 dataload: `./loadData.sh`
9292
6. Return to OxO2 root dir: `cd ..`
93-
7. Start Solr: `SOLR_SCRIPT/solr start --user-managed`
93+
7. Start Solr: `$SOLR_SCRIPT/solr start --user-managed`
9494
8. Run OxO backend: `./startBackend.sh`
9595
9. To build and run frontend:
9696
1. Change directory to frontend: `cd oxo2-frontend`
9797
2. Build frontend: `npm install`
9898
3. Start frontend: `npm run dev`
99-
4. Access frontend from browser at: `http://localhost:5173/`
100-
5. Backend is accessible at: `http://localhost:8080`.
99+
4. Access frontend from browser at: `http://localhost:8080/`
100+
5. Backend is accessible at: `http://localhost:8081`.
101101

102102

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ services:
1616
solr:
1717
image: solr:9.9.0
1818
environment:
19-
- SOLR_HOME=/mnt/solr-data
19+
- SOLR_HOME=/mnt/oxo/solr-data
2020
ports:
2121
- 8983:8983
2222
volumes:
23-
- solr-data:/mnt/solr-data
23+
- solr-data:/mnt/oxo/solr-data
2424
depends_on:
2525
dataload:
2626
condition: service_completed_successfully

k8chart-dev/oxo2/templates/frontend-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
initContainers:
1818
- name: init-container
1919
image: ghcr.io/ebispot/oxo2-frontend:{{.Values.imageTag}}
20-
command: [ 'sh', '-c', 'until curl {{ .Release.Name }}-backend:8080; do echo waiting for backend; sleep 5; done;' ]
20+
command: [ 'sh', '-c', 'until curl {{ .Release.Name }}-backend:8081; do echo waiting for backend; sleep 5; done;' ]
2121
containers:
2222
- name: frontend
2323
image: ghcr.io/ebispot/oxo2-frontend:{{.Values.imageTag}}

k8chart-dev/oxo2/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ backend:
1515
image: "oxo2/backend"
1616
replicaCount: 1
1717
service:
18-
port: 8080
19-
containerPort: 8080
20-
targetPort: 8080
18+
port: 8081
19+
containerPort: 8081
20+
targetPort: 8081
2121

2222

2323
frontend:

k8chart-local/oxo2/templates/frontend-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
initContainers:
1818
- name: init-container
1919
image: ghcr.io/ebispot/oxo2-frontend:{{.Values.imageTag}}
20-
command: [ 'sh', '-c', 'until curl {{ .Release.Name }}-backend:8080; do echo waiting for backend; sleep 5; done;' ]
20+
command: [ 'sh', '-c', 'until curl {{ .Release.Name }}-backend:8081; do echo waiting for backend; sleep 5; done;' ]
2121
containers:
2222
- name: frontend
2323
image: ghcr.io/ebispot/oxo2-frontend:{{.Values.imageTag}}

k8chart-local/oxo2/templates/solr-pv.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
persistentVolumeReclaimPolicy: Retain
1111
storageClassName: local-storage
1212
hostPath:
13-
path: /mnt/solr-data
13+
path: /mnt/oxo/solr-data
1414
type: Directory
1515
{{- if .Values.solr.persistence.nodeAffinity.host }}
1616
nodeAffinity:

k8chart-local/oxo2/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ backend:
1717
image: "oxo2/backend"
1818
replicaCount: 1
1919
service:
20-
port: 8080
21-
containerPort: 8080
22-
targetPort: 8080
20+
port: 8081
21+
containerPort: 8081
22+
targetPort: 8081
2323

2424

2525
frontend:

oxo2-dataload/loadData.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ echo "Download took: ${elapsed} seconds"
1818

1919
start_time=$(date +%s)
2020
echo "###################" sssom2json...
21-
mkdir -p $OXO2_CONFIG $OXO2_DATA/sssom-as-json
21+
mkdir -p $OXO2_DATA/sssom-as-json
2222
$SCRIPT_DIR/sssom2json.sh $OXO2_DATA/sssom $OXO2_DATA/sssom-as-json
2323
end_time=$(date +%s)
2424
elapsed=$((end_time - start_time))

0 commit comments

Comments
 (0)