mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 20:42:54 +00:00
+ neondatabase/cloud#1103 This adds a couple of control endpoints to simplify compute state discovery for control-plane. For example, now we may figure out that Postgres wasn't able to start or basebackup failed within seconds instead of just blindly polling the compute readiness for a minute or two. Also we now expose startup metrics (time of the each step: basebackup, sync safekeepers, config, total). Console grabs them after each successful start and report as histogram to prometheus and grafana. OpenAPI spec is added and up-tp date, but is not currently used in the console yet.
19 lines
532 B
Docker
19 lines
532 B
Docker
# First transient image to build compute_tools binaries
|
|
# NB: keep in sync with rust image version in .circle/config.yml
|
|
FROM zimg/rust:1.58 AS rust-build
|
|
|
|
ARG CACHEPOT_BUCKET=zenith-rust-cachepot
|
|
ARG AWS_ACCESS_KEY_ID
|
|
ARG AWS_SECRET_ACCESS_KEY
|
|
|
|
COPY . .
|
|
|
|
RUN set -e \
|
|
&& sudo -E "PATH=$PATH" mold -run cargo build -p compute_tools --release \
|
|
&& cachepot -s
|
|
|
|
# Final image that only has one binary
|
|
FROM debian:buster-slim
|
|
|
|
COPY --from=rust-build /home/circleci/project/target/release/compute_ctl /usr/local/bin/compute_ctl
|