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.
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
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.
After (local) installation & configuration, make sure to activate the Python virtual environment via:
poetry shell
Then to run the worker:
python worker.py
Check if your local deployment is ok by running:
./scripts/check-project.sh
From the main directory, run:
docker build -t dane-download-worker .