mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-26 07:39:58 +00:00
Currently it's included with minimal changes and lives aside of the main workspace. Later we may re-use and combine common parts with zenith control_plane. This change is mostly needed to unify cloud deployment pipeline: 1.1. build compute-tools image 1.2. build compute-node image based on the freshly built compute-tools 2. build zenith image So we can roll new compute image and new storage required by it to operate properly. Also it becomes easier to test console against some specific version of compute-node/-tools.
15 lines
347 B
Docker
15 lines
347 B
Docker
# First transient image to build compute_tools binaries
|
|
FROM rust:slim-buster AS rust-build
|
|
|
|
RUN mkdir /compute_tools
|
|
WORKDIR /compute_tools
|
|
|
|
COPY . /compute_tools/
|
|
|
|
RUN cargo build --release
|
|
|
|
# Final image that only has one binary
|
|
FROM debian:buster-slim
|
|
|
|
COPY --from=rust-build /compute_tools/target/release/zenith_ctl /usr/local/bin/zenith_ctl
|