Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Build the admin console SPA (controlplane/admin/ui) so the kubernetes build
# embeds a FRESH dist/ via //go:embed all:ui/dist, overwriting the committed
# bundle. Runs before the Go build.
FROM node:24-bookworm-slim AS uibuilder
FROM node:24-bookworm-slim@sha256:f3690d9da7fcdea20facb2f14f08cbd0f6e442164d8b4bae44f11e850597b48f AS uibuilder
WORKDIR /ui
COPY controlplane/admin/ui/package.json controlplane/admin/ui/package-lock.json ./
RUN npm ci
COPY controlplane/admin/ui/ ./
RUN npm run build

FROM golang:1.27-bookworm AS builder
FROM golang:1.27-bookworm@sha256:ce59b41415e2524ae99926fe1f37ce48ba8c194dcbd2a56a65436cdcefa2bd34 AS builder

RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libc6-dev curl gzip && rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -75,7 +75,7 @@ RUN CGO_ENABLED=1 \
./duckdbservice
RUN CGO_ENABLED=1 go build -tags "${BUILD_TAGS}" -ldflags "-X main.version=${VERSION} -X main.commit=${COMMIT} -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" -o duckgres .

FROM chainguard/wolfi-base:latest
FROM chainguard/wolfi-base:latest@sha256:cc7d4006ee760d035bbfb8475cabbed324d2ee400bfce8972742a318608d31fd

# postgresql-18-client provides pg_dump/pg_restore, used by the control-plane
# reshard runner's pre-flip catalog backup (docs/design/resharding.md). Pinned
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.controlplane
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
# Build the admin console SPA so the kubernetes build embeds a FRESH dist/ via
# //go:embed all:ui/dist (this is the prod CP image — without this stage it
# would ship whatever ui/dist was last committed).
FROM node:24-bookworm-slim AS uibuilder
FROM node:24-bookworm-slim@sha256:f3690d9da7fcdea20facb2f14f08cbd0f6e442164d8b4bae44f11e850597b48f AS uibuilder
WORKDIR /ui
COPY controlplane/admin/ui/package.json controlplane/admin/ui/package-lock.json ./
RUN npm ci
COPY controlplane/admin/ui/ ./
RUN npm run build

FROM golang:1.27-bookworm AS builder
FROM golang:1.27-bookworm@sha256:ce59b41415e2524ae99926fe1f37ce48ba8c194dcbd2a56a65436cdcefa2bd34 AS builder

RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libc6-dev && rm -rf /var/lib/apt/lists/*

Expand All @@ -43,7 +43,7 @@ RUN CGO_ENABLED=1 go build -tags "${BUILD_TAGS}" \
-o duckgres-controlplane \
./cmd/duckgres-controlplane

FROM chainguard/wolfi-base:latest
FROM chainguard/wolfi-base:latest@sha256:cc7d4006ee760d035bbfb8475cabbed324d2ee400bfce8972742a318608d31fd

# postgresql-18-client provides pg_dump/pg_restore for the reshard runner's
# pre-flip catalog backup (docs/design/resharding.md). Pinned to PG 18 to match
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# surface is the all-in-one duckgres binary (or the CP-only binary in
# cmd/duckgres-controlplane), which routes queries to whichever worker
# image the per-tenant `image` config-store column points at.
FROM golang:1.27-bookworm AS builder
FROM golang:1.27-bookworm@sha256:ce59b41415e2524ae99926fe1f37ce48ba8c194dcbd2a56a65436cdcefa2bd34 AS builder

RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libc6-dev curl gzip && rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -159,7 +159,7 @@ RUN if [ -n "$DUCKDB_BINDINGS_VERSION" ]; then \
echo "Verified: duckgres-worker linked against duckdb-go-bindings@$embedded" ; \
fi

FROM chainguard/wolfi-base:latest
FROM chainguard/wolfi-base:latest@sha256:cc7d4006ee760d035bbfb8475cabbed324d2ee400bfce8972742a318608d31fd

# libstdc++ is the C++ runtime the CGO-linked DuckDB engine needs — present
# implicitly on debian-slim, but not in wolfi-base.
Expand Down
4 changes: 2 additions & 2 deletions cmd/cache-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.27-bookworm AS builder
FROM golang:1.27-bookworm@sha256:ce59b41415e2524ae99926fe1f37ce48ba8c194dcbd2a56a65436cdcefa2bd34 AS builder
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
Expand All @@ -9,7 +9,7 @@ RUN CGO_ENABLED=0 go build \
-ldflags "-X main.version=${VERSION} -X main.commit=${COMMIT} -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
-o cache-proxy ./cmd/cache-proxy/

FROM debian:bookworm-slim
FROM debian:bookworm-slim@sha256:e67eeead736ff7bbe258ef088bff683635c561b1fcfefad0806c1df4ab49ce0e
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
RUN groupadd -r cacheproxy && useradd -r -g cacheproxy -d /app cacheproxy
WORKDIR /app
Expand Down
Loading