Skip to content

Commit eafdfa3

Browse files
committed
Dockerfile: default AGENTLOCK_HOME=/var/lib/agentlock; rename binary to agentlockd; healthcheck refs new path
1 parent bad6970 commit eafdfa3

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

control-plane/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ RUN go build -o /out/control-plane ./cmd/control-plane
5252

5353
# ---------- 4. runtime ----------
5454
FROM gcr.io/distroless/cc-debian12 AS runtime
55-
COPY --from=go-builder /out/control-plane /usr/local/bin/control-plane
55+
COPY --from=go-builder /out/control-plane /usr/local/bin/agentlockd
5656
ENV AGENTLOCK_LISTEN=0.0.0.0:7878
5757
ENV AGENTLOCK_DASHBOARD_LISTEN=0.0.0.0:7879
58+
ENV AGENTLOCK_HOME=/var/lib/agentlock
5859
EXPOSE 7878 7879
5960
USER 65532:65532
60-
ENTRYPOINT ["/usr/local/bin/control-plane"]
61+
ENTRYPOINT ["/usr/local/bin/agentlockd"]

control-plane/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
volumes:
1010
- ../dev/agentlock:/var/lib/agentlock
1111
healthcheck:
12-
test: ["CMD", "/usr/local/bin/control-plane", "--health"]
12+
test: ["CMD", "/usr/local/bin/agentlockd", "--health"]
1313
interval: 10s
1414
timeout: 2s
1515
retries: 3

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
- agentlock-state:/var/lib/agentlock
2929
- ./policies:/etc/agentlock/policies:ro
3030
healthcheck:
31-
test: ["CMD", "/usr/local/bin/control-plane", "--health"]
31+
test: ["CMD", "/usr/local/bin/agentlockd", "--health"]
3232
interval: 10s
3333
timeout: 2s
3434
retries: 3

0 commit comments

Comments
 (0)