- 19 agent definition files with role, responsibilities, secrets, tools, constraints - k8s manifests: namespace, ServiceAccounts, RBAC, NetworkPolicies, Job template, dispatcher CronJob - dispatcher: Python CronJob that claims Vikunja Todo tasks and spawns agent Jobs - container: Dockerfile + entrypoint bootstrapping OpenBao auth and opencode runtime - Separate Dockerfile.dispatcher for the lightweight dispatcher image
18 lines
408 B
Text
18 lines
408 B
Text
# AutoJanet Dispatcher Container
|
|
#
|
|
# Lightweight image for the dispatcher CronJob.
|
|
# No opencode — just Python + k8s client.
|
|
|
|
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY dispatcher/requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY dispatcher/dispatcher.py /app/dispatcher.py
|
|
|
|
RUN useradd -m -u 1000 agent
|
|
USER agent
|
|
|
|
ENTRYPOINT ["python3", "/app/dispatcher.py"]
|