Skip to content

CSCfi/Kielipankki-fcs-endpoint-ansible

Repository files navigation

Setting up FCS Korp endpoint on Pouta

Pre-requisites

Clone the git repository

Clone this repository and navigate to the correct directory.

Install requirements

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 your cPouta (OpenStack) auth file.

$ source project_2000680-openrc.sh

Install Ansible requirements

$ ansible-galaxy collection install -r requirements.yml

Run ansible playbook

$ cd Kielipankki/servers/fcs-korp-endpoint
$ ansible-playbook -i inventories/fcs-korp fcsKorp.yml

Test endpoint

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'"

About

The Language Bank's CLARIN Federated Content Search Ansible Installer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors