Skip to content

INESData/inesdata-espacio-linguistico-elg-web-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ELG Connector Web Service

ELG authentication token creation

This component needs an ELG authentication token, we can create it with the elg python client:

python3.11 -m venv .venv
source .venv/bin/activate
pip install elg

Then we run the following code:

from elg import Authentication

auth = Authentication.init(scope="offline_access")
auth.to_json("tokens.json")

This will create the authentification token that will be used by the ELG Connector Web Service.

Docker image creation

We can now build the Docker image with:

docker build -t elg_connector_ws .

Kubernetes deployment

  1. Push the docker image to a container registry. You can use for example Github registry.
  2. Create a secret in the Kubernetes namespace where the ELG connector web service will be deployed.
  3. Check the kubernetes/elg-connector-ws.yaml file, and use the correct Docker image for the pod. Now you can deploy the ELG connector web service with:
kubectl apply -f kubernetes/elg-connector-ws.yaml

Releases

No releases published

Packages

No packages published