Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of the cycle in this build system #809

Merged
merged 1 commit into from
Nov 14, 2024
Merged
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
13 changes: 12 additions & 1 deletion images/trunk-test-tembo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
ARG PG_VERSION=15
ARG TAG=latest

FROM quay.io/tembo/tembo-pg-cnpg:pg${PG_VERSION}-e112cf3
FROM rust:1.78-bookworm as builder

ARG TRUNK_VER=0.14.0

ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse
RUN cargo install --version $TRUNK_VER pg-trunk

FROM quay.io/tembo/tembo-pg-cnpg:pg${PG_VERSION}-e112cf3

# Install trunk
COPY --from=builder /usr/local/cargo/bin/trunk /usr/bin/trunk

USER root
RUN apt-get update && apt-get install -y \
Expand Down