Skip to main content

The QALITA Agent Docker image allows you to use the QALITA CLI ready-to-use in any environment.

Tags

  • [latest]: Use this tag if you want the latest worker image.
  • [x.x.x]: Specific version tag: Use it to ensure you are using the version of QALITA CLI that matches your QALITA platform version.

Quick Start

docker run qalita/worker <your_qalita_cli_command>

To see all available CLI commands, go to the command details page.

How to Use It ?

Minimal Configuration

This will only run a worker waiting for tasks to run.

docker run \
-e QALITA_WORKER_NAME=agent \
-e QALITA_WORKER_MODE=worker \
-e QALITA_WORKER_ENDPOINT=http://localhost:3080 \
-e QALITA_WORKER_TOKEN=***** \
qalita/worker agent run

Full Configuration with UI

This will run a worker with the UI, and full persistence. of your data locally.

warning

The worker is not running by default, you will have to enable it in the UI

docker run \
-v "$HOME/.qalita:/root/.qalita" \
-e QALITA_WORKER_NAME=agent \
-e QALITA_WORKER_MODE=worker \
-e QALITA_WORKER_ENDPOINT=http://localhost:3080 \
-e QALITA_WORKER_TOKEN=***** \
-e QALITA_WORKER_UI=true \
-e QALITA_WORKER_UI_PORT=7070 \
-e QALITA_WORKER_UI_HOST=0.0.0.0 \
-p 7070:7070 \
qalita/worker

Mount a local sources-conf.yaml

If you want to persist your source configuration, we recommend mounting a local sources-conf.yaml file into the container.

docker run \
-v ${HOME}/.qalita/sources-conf.yaml:/root/.qalita/sources-conf.yaml \
-e QALITA_WORKER_NAME=agent \
-e QALITA_WORKER_MODE=worker \
-e QALITA_WORKER_ENDPOINT=http://localhost:3080 \
-e QALITA_WORKER_TOKEN=***** \
qalita/worker agent run

Chain CLI commands

Get the List of QALITA Packs

docker run \
-v ${HOME}/.qalita/sources-conf.yaml:/root/.qalita/sources-conf.yaml \
-e QALITA_WORKER_NAME=agent \
-e QALITA_WORKER_MODE=worker \
-e QALITA_WORKER_ENDPOINT=http://localhost:3080 \
-e QALITA_WORKER_TOKEN=***** \
qalita/worker \
agent login && \
qalita pack list

Get the List of QALITA Sources

docker run \
-v ${HOME}/.qalita/sources-conf.yaml:/root/.qalita/sources-conf.yaml \
-e QALITA_WORKER_NAME=agent \
-e QALITA_WORKER_MODE=worker \
-e QALITA_WORKER_ENDPOINT=http://localhost:3080 \
-e QALITA_WORKER_TOKEN=***** \
qalita/worker \
agent login && \
qalita source list

Environment variables

To find more details about env vars go to the dedicated page