Skip to content

Commit 2a2c4bf

Browse files
chore(opa): Install missing rust toolchains
The behaviour of rustup has recently changed: rust-lang/rustup#3985 Co-authored-by: Techassi <[email protected]>
1 parent 78328be commit 2a2c4bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

opa/Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ RUN microdnf update \
2121

2222
WORKDIR /
2323

24+
# WARNING (@NickLarsenNZ): We should pin the rustup version
2425
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2526
RUN git clone --depth 1 --branch ${BUNDLE_BUILDER_VERSION} https://github.com/stackabletech/opa-bundle-builder
26-
RUN cd ./opa-bundle-builder && . "$HOME/.cargo/env" && cargo --quiet build --release
27+
RUN <<EOF
28+
cd ./opa-bundle-builder
29+
. "$HOME/.cargo/env"
30+
rustup toolchain install
31+
cargo --quiet build --release
32+
EOF
2733

2834
FROM stackable/image/stackable-base AS multilog-builder
2935

0 commit comments

Comments
 (0)