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 agent 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/agent <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 agent waiting for tasks to run.
docker run \
-e QALITA_AGENT_NAME=agent \
-e QALITA_AGENT_MODE=worker \
-e QALITA_AGENT_ENDPOINT=http://localhost:3080 \
-e QALITA_AGENT_TOKEN=***** \
qalita/agent agent run
Full Configuration with UI
This will run an agent with the UI, and full persistence. of your data locally.
warning
The agent is not running by default, you will have to enable it in the UI
docker run \
-v "$HOME/.qalita:/root/.qalita" \
-e QALITA_AGENT_NAME=agent \
-e QALITA_AGENT_MODE=worker \
-e QALITA_AGENT_ENDPOINT=http://localhost:3080 \
-e QALITA_AGENT_TOKEN=***** \
-e QALITA_AGENT_UI=true \
-e QALITA_AGENT_UI_PORT=7070 \
-e QALITA_AGENT_UI_HOST=0.0.0.0 \
-p 7070:7070 \
qalita/agent
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_AGENT_NAME=agent \
-e QALITA_AGENT_MODE=worker \
-e QALITA_AGENT_ENDPOINT=http://localhost:3080 \
-e QALITA_AGENT_TOKEN=***** \
qalita/agent 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_AGENT_NAME=agent \
-e QALITA_AGENT_MODE=worker \
-e QALITA_AGENT_ENDPOINT=http://localhost:3080 \
-e QALITA_AGENT_TOKEN=***** \
qalita/agent \
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_AGENT_NAME=agent \
-e QALITA_AGENT_MODE=worker \
-e QALITA_AGENT_ENDPOINT=http://localhost:3080 \
-e QALITA_AGENT_TOKEN=***** \
qalita/agent \
agent login && \
qalita source list
Environment variables
To find more details about env vars go to the dedicated page