Heimdall Gitea / Detect CI scope (pull_request) Successful in 4s
Heimdall Gitea / Build and tests (pull_request) Successful in 23m43s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 8m55s
Heimdall Gitea / Build and scan server image (pull_request) Successful in 9m7s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Successful in 13m42s
Heimdall Gitea / CI policy (pull_request) Successful in 2s
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
# Local standalone Agent for development. The Central must be running first.
|
|
services:
|
|
heimdall-agent:
|
|
image: heimdall-agent:local
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile.agent
|
|
restart: unless-stopped
|
|
user: "1654:1654"
|
|
group_add:
|
|
- "${DOCKER_GID:-0}"
|
|
network_mode: host
|
|
environment:
|
|
ASPNETCORE_URLS: http://127.0.0.1:8081
|
|
Agent__CentralUrl: ${HEIMDALL_CENTRAL_URL:-http://localhost:5000}
|
|
Agent__PublicIpResolverUrl: ${HEIMDALL_PUBLIC_IP_RESOLVER_URL:-}
|
|
Agent__AllowInsecureHttp: "true"
|
|
Agent__SiteToken: ${HEIMDALL_SITE_TOKEN:?HEIMDALL_SITE_TOKEN is required}
|
|
Agent__AgentName: ${HEIMDALL_AGENT_NAME:-agent-dev}
|
|
Agent__HeartbeatIntervalSeconds: ${HEIMDALL_HEARTBEAT_INTERVAL:-30}
|
|
Agent__StateDirectory: /var/lib/heimdall
|
|
volumes:
|
|
- agent_state:/var/lib/heimdall
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8081/healthz"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 15s
|
|
depends_on:
|
|
agent-state-init:
|
|
condition: service_completed_successfully
|
|
|
|
agent-state-init:
|
|
image: heimdall-agent:local
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile.agent
|
|
user: "0:0"
|
|
entrypoint: ["chown", "-R", "1654:1654", "/state"]
|
|
volumes:
|
|
- agent_state:/state
|
|
restart: "no"
|
|
|
|
volumes:
|
|
agent_state:
|