Skip to content

Commit cead2b0

Browse files
committed
chore(build): pin Rust toolchain to 1.87.0 and bump pgrx to 0.16.1
1 parent 77cb4cf commit cead2b0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

timescaledb-pgrx/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
FROM timescale/timescaledb-ha:pg17 AS pgrx
22

3+
# Current pgrx version is 0.16.1 at 2026/01/09
4+
# see: https://github.com/supabase/wrappers/commit/eea6f87f
5+
ARG PGRX_VER="0.16.1"
6+
7+
# Current Rust version is 1.87.0 at 2025/06/12
8+
ARG RUST_VER="1.87.0"
9+
310
USER root
411

512
RUN \
@@ -36,16 +43,12 @@ ENV PATH="/home/pgrx/.cargo/bin:${PATH}"
3643
ENV PG17_PG_CONFIG="/usr/lib/postgresql/17/bin/pg_config"
3744

3845
# Install Rust
39-
# Current Rust version is 1.87.0 at 2025/06/12
40-
# --default-toolchain 1.87.0
41-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
46+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain "${RUST_VER}"
4247

4348
FROM pgrx AS pgrx-wrappers
4449

4550
# Install and initialize pgrx
46-
# Current pgrx version should be 0.14.3 at 2025/06/12
47-
# --version 0.14.3
48-
RUN cargo install --locked --version=0.14.3 cargo-pgrx
51+
RUN cargo install --locked --version "${PGRX_VER}" cargo-pgrx
4952
RUN cargo pgrx init --pg17=${PG17_PG_CONFIG}
5053

5154

0 commit comments

Comments
 (0)