Skip to content

beeldengeluid/dane-download-worker

Repository files navigation

Test, lint and build main branch

Download worker

This is a worker that interacts with DANE to receive its work. It downloads the file provided in the target.url of a DANE document.

Running DANE and any DANE worker is most convenient using Kubernetes, instructions for setting up DANE in a Kubernetes cluster will be provided in a separate repository.

Local installation (for development)

Make sure to install poetry

Then to install the worker run the following:

git clone https://github.com/beeldengeluid/download-worker.git
cd dane-download-worker
poetry install

Configuration

Make sure to copy config_k8s.yml to config.yml in the main directory of this repo. Study the inline comments to properly configure this DANE worker. Most importantly a valid RabbitMQ server and Elasticsearch cluster is required to get this DANE worker to start-up.

Run

After (local) installation & configuration, make sure to activate the Python virtual environment via:

poetry shell

Then to run the worker:

python worker.py

Run local unit tests

Check if your local deployment is ok by running:

./scripts/check-project.sh

Building the image

From the main directory, run:

docker build -t dane-download-worker .

About

Generic file download worker for DANE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •