This repository provides a deployment of the mquery-sru for ACDH-CH public corpora.
It uses github actions to run a following workflow:
- Clone the mquery-sru repo.
- Adjust its Dockerfile so it includes corpora from existing docker images defined in the
preDockerfile
and copies data from them according to thepostDockerfile
. - Include into the build config the
confgen.py
script and thecorpora.yml
file which are used to dynamically build thecorpora-resources
section of the mquery-sru's config file upon its container startup. - Build the docker image and push it to the docker hub.
The deployment is available under https://noske-fcs.acdh-ch-dev.oeaw.ac.at/, e.g.
- https://noske-fcs.acdh-ch-dev.oeaw.ac.at/?operation=explain&version=2.0&x-fcs-endpoint-description=true
- https://noske-fcs.acdh-ch-dev.oeaw.ac.at/?query=Vater
- Open the
config.json
and adjust theserverInfo
section. - Save, commit, push, run the build action.
- If the corpus is a part of a publicly available docker image, then define an alias to it
in the
preDockerfile
and add a data copy command to thepostDockerfile
(see the sample code in these files) - Edit the
corpora.yaml
providing all configuration properties for the new corpus (see comments inside the file) - Commit, push, run the build action.