-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
764: make x86_64-unknown-linux-gnu ubuntu again r=Alexhuszagh a=Emilgardis This pr effectively changes the default image for `x86_64-unknown-linux-gnu` to be ubuntu based. We target 16.04 because that is what was used in cross 0.2.1. While some users may not care about this, if GLIBC 2.23 is too new for someone, you're able to replace the image in `Cross.toml` with a CentOS based one (targets 2.17): ``` [target.x86_64-unknown-linux-gnu] # The CentOS image gets published under the same package as the Ubuntu one, just with an added `-centos` image = "ghcr.io/cross-rs/cross/x86_64-unknown-linux-gnu:main-centos" ``` Resolves #680 Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
- Loading branch information
Showing
7 changed files
with
70 additions
and
27 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM ubuntu:16.04 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY lib.sh / | ||
COPY linux-image.sh / | ||
RUN /linux-image.sh x86_64 | ||
|
||
FROM centos:7 | ||
|
||
COPY common.sh lib.sh / | ||
RUN /common.sh | ||
|
||
COPY cmake.sh / | ||
RUN /cmake.sh | ||
|
||
COPY xargo.sh / | ||
RUN /xargo.sh | ||
|
||
COPY qemu.sh / | ||
RUN /qemu.sh x86_64 softmmu | ||
|
||
COPY dropbear.sh / | ||
RUN /dropbear.sh | ||
|
||
COPY --from=0 /qemu /qemu | ||
|
||
COPY linux-runner / | ||
|
||
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="/linux-runner x86_64" |
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