- Access to Pouta
- Your cPouta project's OpenStack RC file
- Key pair for cPouta instances. Created in https://pouta.csc.fi/ (Project > Compute > Key Pairs) and must be named "kielipouta".
Clone this repository and navigate to the correct directory.
For Python requirements, it is recommended to use a virtual environment:
$ virtualenv .venv -p python3
$ source .venv/bin/activate
$ pip install -r requirements_dev.txt
The activation step must be done separately for each new session.
$ source project_2000680-openrc.sh
$ ansible-galaxy collection install -r requirements.yml
$ cd Kielipankki/servers/fcs-korp-endpoint
$ ansible-playbook -i inventories/fcs-korp fcsKorp.yml
SSH to the created server and run this command to test the endpoint:
curl "localhost:8080/fcs-korp/sru?queryType=fcs&query=%5Bword+%3D+%27bastu%27%5D"
Or test it locally:
ssh ubuntu@86.50.253.167 "curl 'localhost:8080/fcs-korp/sru?queryType=fcs&query=%5Bword+%3D+%27bastu%27%5D'"