-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rust image to add rcodesign instead of rustup
Signed-off-by: Alper Polat <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
FROM rust:latest as rustbuilder | ||
|
||
RUN cargo install --git https://github.com/indygreg/apple-platform-rs --branch main --bin rcodesign apple-codesign | ||
|
||
FROM quay.io/prometheus/golang-builder:1.20-base | ||
MAINTAINER The Prometheus Authors <[email protected]> | ||
|
||
|
@@ -26,8 +30,9 @@ RUN \ | |
libc6-riscv64-cross linux-libc-dev-riscv64-cross \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& mkdir -p /tmp/osxcross \ | ||
&& curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
&& mkdir -p /root/.cargo | ||
|
||
COPY --from=rustbuilder /root/.cargo/bin /root/.cargo/bin | ||
|
||
ARG PROM_OSX_SDK_URL | ||
ENV OSXCROSS_PATH=/usr/osxcross \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
FROM rust:latest as rustbuilder | ||
|
||
RUN cargo install --git https://github.com/indygreg/apple-platform-rs --branch main --bin rcodesign apple-codesign | ||
|
||
FROM quay.io/prometheus/golang-builder:1.21-base | ||
MAINTAINER The Prometheus Authors <[email protected]> | ||
|
||
|
@@ -26,8 +30,9 @@ RUN \ | |
libc6-riscv64-cross linux-libc-dev-riscv64-cross \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& mkdir -p /tmp/osxcross \ | ||
# Install rust separately, because debian bookworm does not ship newer than 1.63.0 | ||
&& curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
&& mkdir -p /root/.cargo | ||
|
||
COPY --from=rustbuilder /root/.cargo/bin /root/.cargo/bin | ||
|
||
ARG PROM_OSX_SDK_URL | ||
ENV OSXCROSS_PATH=/usr/osxcross \ | ||
|
@@ -49,6 +54,4 @@ WORKDIR /app | |
|
||
ENV PATH /root/.cargo/bin:$OSXCROSS_PATH/bin:$PATH | ||
|
||
RUN cargo install --git https://github.com/indygreg/apple-platform-rs --branch main --bin rcodesign apple-codesign | ||
|
||
COPY rootfs / |