-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transition to Native Multi-Platform Builds for Docker Images (#161)
* Update Rust Image version to 1.84 * Rewrite Release WF to use ARM runner * update actions/cache to v4.2.1
- Loading branch information
1 parent
9cc417b
commit d343738
Showing
14 changed files
with
418 additions
and
321 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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,14 +1,12 @@ | ||
FROM rust@sha256:8fae3b1a63a4dcfb6cf277a49fb5967ccbf479b9e9cee4588a077a9cb216e6d4 as builder | ||
# rust:1.81-bullseye | ||
FROM rust:1.84-bullseye as builder | ||
RUN apt-get update && apt-get install -y protobuf-compiler libcurl4 && apt-get clean | ||
|
||
WORKDIR /usr/src | ||
COPY . . | ||
WORKDIR /usr/src | ||
RUN cargo install --force --path . | ||
|
||
FROM gcr.io/distroless/cc-debian11@sha256:55a5e011b2c4246b4c51e01fcc2b452d151e03df052e357465f0392fcd59fddf | ||
# gcr.io/distroless/cc-debian11 | ||
FROM gcr.io/distroless/cc-debian11 | ||
ENV RUST_BACKTRACE=1 | ||
COPY --from=builder /usr/local/cargo/bin/kubernetes-proxy /usr/local/bin/kubernetes-proxy | ||
CMD ["kubernetes-proxy"] |
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,14 +1,12 @@ | ||
FROM rust@sha256:8fae3b1a63a4dcfb6cf277a49fb5967ccbf479b9e9cee4588a077a9cb216e6d4 as builder | ||
# rust:1.81-bullseye | ||
FROM rust:1.84-bullseye as builder | ||
RUN apt-get update && apt-get install -y protobuf-compiler libcurl4 && apt-get clean | ||
|
||
WORKDIR /usr/src | ||
COPY . . | ||
WORKDIR /usr/src | ||
RUN cargo install --force --path . | ||
|
||
FROM gcr.io/distroless/cc-debian11@sha256:55a5e011b2c4246b4c51e01fcc2b452d151e03df052e357465f0392fcd59fddf | ||
# gcr.io/distroless/cc-debian11 | ||
FROM gcr.io/distroless/cc-debian11 | ||
ENV RUST_BACKTRACE=1 | ||
COPY --from=builder /usr/local/cargo/bin/kubernetes-reactivator /usr/local/bin/kubernetes-reactivator | ||
CMD ["kubernetes-reactivator"] |
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,14 +1,12 @@ | ||
FROM rust@sha256:8fae3b1a63a4dcfb6cf277a49fb5967ccbf479b9e9cee4588a077a9cb216e6d4 as builder | ||
# rust:1.81-bullseye | ||
FROM rust:1.84-bullseye as builder | ||
RUN apt-get update && apt-get install -y protobuf-compiler libcurl4 && apt-get clean | ||
|
||
WORKDIR /usr/src | ||
COPY . . | ||
WORKDIR /usr/src | ||
RUN cargo install --force --path . | ||
|
||
FROM gcr.io/distroless/cc-debian11@sha256:55a5e011b2c4246b4c51e01fcc2b452d151e03df052e357465f0392fcd59fddf | ||
# gcr.io/distroless/cc-debian11 | ||
FROM gcr.io/distroless/cc-debian11 | ||
ENV RUST_BACKTRACE=1 | ||
COPY --from=builder /usr/local/cargo/bin/proxy /usr/local/bin/proxy | ||
CMD ["proxy"] |
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,14 +1,12 @@ | ||
FROM rust@sha256:8fae3b1a63a4dcfb6cf277a49fb5967ccbf479b9e9cee4588a077a9cb216e6d4 as builder | ||
# rust:1.81-bullseye | ||
FROM rust:1.84-bullseye as builder | ||
RUN apt-get update && apt-get install -y protobuf-compiler libcurl4 && apt-get clean | ||
|
||
WORKDIR /usr/src | ||
COPY . . | ||
WORKDIR /usr/src | ||
RUN cargo install --force --path . | ||
|
||
FROM gcr.io/distroless/cc-debian11@sha256:55a5e011b2c4246b4c51e01fcc2b452d151e03df052e357465f0392fcd59fddf | ||
# gcr.io/distroless/cc-debian11 | ||
FROM gcr.io/distroless/cc-debian11 | ||
ENV RUST_BACKTRACE=1 | ||
COPY --from=builder /usr/local/cargo/bin/reactivator /usr/local/bin/reactivator | ||
CMD ["reactivator"] |
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
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
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