A Python Hello World on ArmoniK
Description
This project contains a worker and a client to interact with ArmoniK’s Control Plane. The worker processes tasks sent by the Agent, transforming input data and sending results back to it.
Steps
Build the Docker image for the worker:
docker build -t armonik-worker -f Dockerfile .
Deploy ArmoniK locally by following the instructions at ArmoniK Documentation. Ensure you create a new partition named “helloworld” with the worker’s image.
Move to the
clientfolder and create a virtual environment:cd client python -m venv .venv
Activate the virtual environment:
source .venv/bin/activate
Install the client dependencies:
pip install -r client-requirements.txt
Usage
Run the Client with the name of the partition and the endpoint obtained after ArmoniK’s deployment:
python client.py --partition helloworld --endpoint <ip>:port