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

  1. Build the Docker image for the worker:

    docker build -t armonik-worker -f Dockerfile .
    
  2. Deploy ArmoniK locally by following the instructions at ArmoniK Documentation. Ensure you create a new partition named “helloworld” with the worker’s image.

  3. Move to the client folder and create a virtual environment:

    cd client
    python -m venv .venv
    
  4. Activate the virtual environment:

    source .venv/bin/activate
    
  5. 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