Complete renamed image source and verify bounded consumer migration readiness
Assistant: codex Assistant-Model: gpt-6.1-sol Assistant-Session: 01a126e1-76f8-7643-8cf3-e93336539ade
This commit is contained in:
parent
dd15d8cf3f
commit
16ca97b277
13 changed files with 455 additions and 19 deletions
|
|
@ -4,11 +4,14 @@ WORKDIR /src
|
|||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/flex-auth ./cmd/flex-auth
|
||||
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/access-engine ./cmd/access-engine && CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/flex-auth ./cmd/flex-auth
|
||||
|
||||
FROM gcr.io/distroless/static-debian12:nonroot@sha256:afa5c872c891853ca7fcf1f12c3edb23f7eeef36189728842dd51042ff57f7ab
|
||||
COPY --from=build /out/access-engine /usr/local/bin/access-engine
|
||||
COPY --from=build /out/flex-auth /usr/local/bin/flex-auth
|
||||
COPY examples /opt/access-engine/examples
|
||||
# Existing pinned releases still pass these paths during the side-by-side migration.
|
||||
COPY examples /opt/flex-auth/examples
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/usr/local/bin/flex-auth"]
|
||||
CMD ["serve", "--addr", "0.0.0.0:8080", "--registry", "/opt/flex-auth/examples/tenant-engine/registry_snapshot.json", "--policy", "/opt/flex-auth/examples/tenant-engine/policy_package.md"]
|
||||
ENTRYPOINT ["/usr/local/bin/access-engine"]
|
||||
CMD ["serve", "--addr", "0.0.0.0:8080", "--registry", "/opt/access-engine/examples/tenant-engine/registry_snapshot.json", "--policy", "/opt/access-engine/examples/tenant-engine/policy_package.md"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue