Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/mint/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: 3.3.1-alpha.4
version: 3.3.1-alpha.5
# 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
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
14 changes: 10 additions & 4 deletions charts/mint/templates/post-install-model-catalog-endpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,25 @@ spec:
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec:
restartPolicy: Never
initContainers:
- name: wait-for-model-catalog-endpoint
image: alpine/curl
command: ["sh", "-c", "until curl -sk {{ include "mint.prefix" . }}-model-catalog-endpoint:3030/$/ping; do echo waiting for model-catalog-endpoint; sleep 2; done"]
resources:
{{- toYaml .Values.resources | nindent 12 }}
containers:
- name: post-install-model-catalog-endpoint
command: ["/bin/bash"]
args: ["-c", "curl -v \
'http://{{ include "mint.prefix" $ }}-model-catalog-endpoint:3030/$/datasets' \
args: ["-c", "curl 'http://{{ include "mint.prefix" $ }}-model-catalog-endpoint:3030/$/datasets' \
-X POST \
-u admin:${ADMIN_PASSWORD} \
--data-raw \"dbName={{ .Values.components.model_catalog_endpoint.environment.dataset }}&dbType=tdb2\" \
&& curl -v \
&& curl -o /tmp/seeds.trig {{ .Values.components.model_catalog_endpoint.environment.seeds_url }} \
&& curl \
'http://{{ include "mint.prefix" $ }}-model-catalog-endpoint:3030/{{ .Values.components.model_catalog_endpoint.environment.dataset }}/data' \
-X POST \
-u admin:${ADMIN_PASSWORD} \
--upload-file {{ .Values.components.model_catalog_endpoint.environment.backup_file }} \
--upload-file /tmp/seeds.trig \
-H \"Content-Type: application/trig\"
"]
{{- with .Values.components.model_catalog_endpoint }}
Expand Down
1 change: 1 addition & 0 deletions charts/mint/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ components:
graph_base: http://endpoint.mint.isi.edu/modelCatalog-1.8.0/data/
prefix: https://w3id.org/okn/i/mint/
backup_file: /fuseki-base/seeds/model-catalog.trig
seeds_url: https://raw.githubusercontent.com/mintproject/model-catalog-endpoint/main/data/model-catalog.trig
ingress:
enabled: true
className: ""
Expand Down
Loading