Skip to content

Commit e015c54

Browse files
committed
ops: Created Medcat trainer helm. Add github action. Cleanup
1 parent f00ea8a commit e015c54

24 files changed

+13
-1129
lines changed

.github/workflows/kubernetes-charts-build.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,14 @@ jobs:
7070
uses: actions/checkout@v5
7171

7272
- name: Package Helm Charts
73-
run: helm package ./charts/medcat-service-helm --version $CHART_VERSION
73+
run: |
74+
helm package ./charts/medcat-service-helm --version $CHART_VERSION
75+
helm package ./charts/medcat-trainer-helm --version $CHART_VERSION
7476
7577
- name: Helm OCI login to Docker Hub
7678
run: helm registry login registry-1.docker.io -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
7779

7880
- name: Push Helm Chart to Docker Hub OCI
7981
run: |
8082
helm push ./medcat-service-helm-${CHART_VERSION}.tgz oci://registry-1.docker.io/cogstacksystems
83+
helm push ./medcat-trainer-helm-${CHART_VERSION}.tgz oci://registry-1.docker.io/cogstacksystems

deployment/kubernetes/charts/medcat-trainer-helm/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ See these values for common configurations to change:
2424
| -------- | -------- |
2525
| `env` | Environment variables as defined in the [MedCAT Trainer docs](https://docs.cogstack.org/projects/medcat-trainer/en/latest/installation.html). |
2626
|`medcatConfig`|MedCAT config file as described [here](https://github.com/CogStack/cogstack-nlp/blob/main/medcat-v2/medcat/config/config.py)|
27+
| `env.CSRF_TRUSTED_ORIGINS` | The Host and Port to access the application on |
28+
2729

2830
### Use Sqlite instead of Postgres
2931

@@ -38,8 +40,10 @@ postgresql:
3840
enabled: false
3941
```
4042
41-
### Missing features
43+
## Missing features
4244
These features are not yet existing but to be added in future:
4345
- Use a pre existing postgres db
44-
- Use a pre existing SOLR instnace
45-
- Migrate from supervisord to standalone pods for background tasks for scaling purposes
46+
- Use a pre existing SOLR instance
47+
- Migrate from supervisord to standalone deployment for background tasks for better scaling
48+
- Support SOLR authentication from medcat trainer
49+
- Support passing DB OPTIONS to medcat trainer for use in cloud environments

deployment/kubernetes/charts/medcat-trainer-helm/manual_manifests/api-db-backup-persistentvolumeclaim.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

deployment/kubernetes/charts/medcat-trainer-helm/manual_manifests/api-db-persistentvolumeclaim.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

deployment/kubernetes/charts/medcat-trainer-helm/manual_manifests/api-media-persistentvolumeclaim.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

deployment/kubernetes/charts/medcat-trainer-helm/manual_manifests/api-static-persistentvolumeclaim.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

deployment/kubernetes/charts/medcat-trainer-helm/manual_manifests/env-configmap.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

deployment/kubernetes/charts/medcat-trainer-helm/manual_manifests/medcat-configmap.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

deployment/kubernetes/charts/medcat-trainer-helm/manual_manifests/medcattrainer-claim4-persistentvolumeclaim.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

deployment/kubernetes/charts/medcat-trainer-helm/manual_manifests/medcattrainer-claim5-persistentvolumeclaim.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)