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

Add rcodesign installation to golang-builder #242

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
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
10 changes: 8 additions & 2 deletions 1.20/main/Dockerfile
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]>

Expand All @@ -22,10 +26,12 @@ RUN \
crossbuild-essential-powerpc linux-libc-dev-powerpc-cross \
crossbuild-essential-ppc64el linux-libc-dev-ppc64el-cross \
crossbuild-essential-s390x linux-libc-dev-s390x-cross \
gcc-riscv64-linux-gnu g++-riscv64-linux-gnu libc6-dev-riscv64-cross\
libc6-riscv64-cross linux-libc-dev-riscv64-cross\
gcc-riscv64-linux-gnu g++-riscv64-linux-gnu libc6-dev-riscv64-cross \
libc6-riscv64-cross linux-libc-dev-riscv64-cross \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /tmp/osxcross

COPY --from=rustbuilder /usr/local/cargo/bin/rcodesign /usr/local/bin/rcodesign

ARG PROM_OSX_SDK_URL
ENV OSXCROSS_PATH=/usr/osxcross \
Expand Down
10 changes: 8 additions & 2 deletions 1.21/main/Dockerfile
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]>

Expand All @@ -22,10 +26,12 @@ RUN \
crossbuild-essential-powerpc linux-libc-dev-powerpc-cross \
crossbuild-essential-ppc64el linux-libc-dev-ppc64el-cross \
crossbuild-essential-s390x linux-libc-dev-s390x-cross \
gcc-riscv64-linux-gnu g++-riscv64-linux-gnu libc6-dev-riscv64-cross\
libc6-riscv64-cross linux-libc-dev-riscv64-cross\
gcc-riscv64-linux-gnu g++-riscv64-linux-gnu libc6-dev-riscv64-cross \
libc6-riscv64-cross linux-libc-dev-riscv64-cross \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /tmp/osxcross

COPY --from=rustbuilder /usr/local/cargo/bin/rcodesign /usr/local/bin/rcodesign

ARG PROM_OSX_SDK_URL
ENV OSXCROSS_PATH=/usr/osxcross \
Expand Down
Loading