@@ -26,27 +26,27 @@ The main Docker images are the most commonly used ones, and the ones you will pr
2626
2727| Host OS | Target OS | Target Arch | Image | crossrootfs dir |
2828| ----------------- | ------------ | --------------- | -------------------------------------------------------------------------------------- | -------------------- |
29- | Azure Linux (x64) | Alpine 3.17 | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-amd64-musl ` | ` /crossrootfs/x64 ` |
30- | Azure Linux (x64) | Ubuntu 18.04 | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-amd64 ` | ` /crossrootfs/x64 ` |
31- | Azure Linux (x64) | Alpine 3.17 | Arm32 (armhf) | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-arm-musl ` | ` /crossrootfs/arm ` |
32- | Azure Linux (x64) | Ubuntu 22.04 | Arm32 (armhf) | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-arm ` | ` /crossrootfs/arm ` |
33- | Azure Linux (x64) | Alpine 3.17 | Arm64 (arm64v8) | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-arm64-musl ` | ` /crossrootfs/arm64 ` |
34- | Azure Linux (x64) | Ubuntu 18.04 | Arm64 (arm64v8) | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-arm64 ` | ` /crossrootfs/arm64 ` |
35- | Azure Linux (x64) | Ubuntu 18.04 | x86 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-x86 ` | ` /crossrootfs/x86 ` |
29+ | Azure Linux (x64) | Alpine 3.17 | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-amd64-musl ` | ` /crossrootfs/x64 ` |
30+ | Azure Linux (x64) | Ubuntu 18.04 | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-amd64 ` | ` /crossrootfs/x64 ` |
31+ | Azure Linux (x64) | Alpine 3.17 | Arm32 (armhf) | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-arm-musl ` | ` /crossrootfs/arm ` |
32+ | Azure Linux (x64) | Ubuntu 22.04 | Arm32 (armhf) | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-arm ` | ` /crossrootfs/arm ` |
33+ | Azure Linux (x64) | Alpine 3.17 | Arm64 (arm64v8) | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-arm64-musl ` | ` /crossrootfs/arm64 ` |
34+ | Azure Linux (x64) | Ubuntu 18.04 | Arm64 (arm64v8) | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-arm64 ` | ` /crossrootfs/arm64 ` |
35+ | Azure Linux (x64) | Ubuntu 18.04 | x86 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-x86 ` | ` /crossrootfs/x86 ` |
3636
3737** Extended Docker Images**
3838
3939| Host OS | Target OS | Target Arch | Image | crossrootfs dir |
4040| ----------------- | -------------------------- | ------------- | --------------------------------------------------------------------------------------- | ---------------------- |
41- | Azure Linux (x64) | Android Bionic | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-android-amd64 ` | * N/A* |
42- | Azure Linux (x64) | Android Bionic (w/OpenSSL) | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-android-openssl ` | * N/A* |
43- | Azure Linux (x64) | Android Bionic (w/Docker) | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-android-docker ` | * N/A* |
44- | Azure Linux (x64) | FreeBSD 14 | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-freebsd-14 ` | ` /crossrootfs/x64 ` |
45- | Azure Linux (x64) | Ubuntu 18.04 | PPC64le | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-ppc64le ` | ` /crossrootfs/ppc64le ` |
46- | Azure Linux (x64) | Ubuntu 24.04 | RISC-V | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-riscv64 ` | ` /crossrootfs/riscv64 ` |
47- | Azure Linux (x64) | Debian sid | LoongArch | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-loongarch64 ` | ` /crossrootfs/loongarch64 ` |
48- | Azure Linux (x64) | Ubuntu 18.04 | S390x | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-s390x ` | ` /crossrootfs/s390x ` |
49- | Azure Linux (x64) | Ubuntu 18.04 (Wasm) | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-webassembly-amd64 ` | ` /crossrootfs/x64 ` |
41+ | Azure Linux (x64) | Android Bionic | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-android-amd64 ` | * N/A* |
42+ | Azure Linux (x64) | Android Bionic (w/OpenSSL) | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-android-openssl ` | * N/A* |
43+ | Azure Linux (x64) | Android Bionic (w/Docker) | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-android-docker ` | * N/A* |
44+ | Azure Linux (x64) | FreeBSD 14 | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-freebsd-14 ` | ` /crossrootfs/x64 ` |
45+ | Azure Linux (x64) | Ubuntu 18.04 | PPC64le | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-ppc64le ` | ` /crossrootfs/ppc64le ` |
46+ | Azure Linux (x64) | Ubuntu 24.04 | RISC-V | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-riscv64 ` | ` /crossrootfs/riscv64 ` |
47+ | Azure Linux (x64) | Debian sid | LoongArch | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-loongarch64 ` | ` /crossrootfs/loongarch64 ` |
48+ | Azure Linux (x64) | Ubuntu 18.04 | S390x | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-s390x ` | ` /crossrootfs/s390x ` |
49+ | Azure Linux (x64) | Ubuntu 18.04 (Wasm) | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-webassembly-amd64 ` | ` /crossrootfs/x64 ` |
5050| Debian (x64) | Debian 12 | x64 | ` mcr.microsoft.com/dotnet-buildtools/prereqs:debian-12-gcc15-amd64 ` | * N/A* |
5151| Ubuntu (x64) | Tizen 9.0 | Arm32 (armel) | ` mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-armel-tizen ` | ` /crossrootfs/armel ` |
5252
@@ -59,7 +59,7 @@ docker run --rm \
5959 -v < RUNTIME_REPO_PATH> :/runtime \
6060 -w /runtime \
6161 -e ROOTFS_DIR=/crossrootfs/x64/ \
62- mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-amd64 \
62+ mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-amd64 \
6363 ./build.sh -s clr --cross -c Checked
6464```
6565
@@ -69,7 +69,7 @@ Now, dissecting the command:
6969- ` -v <RUNTIME_REPO_PATH>:/runtime ` : Mount the runtime repo clone located in ` <RUNTIME_REPO_PATH> ` to the container path ` /runtime ` .
7070- ` -w /runtime ` : Start the container in the ` /runtime ` directory.
7171- ` -e ROOTFS_DIR=/crossrootfs/x64/ ` sets up the environment variable for crossbuilding.
72- - ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10 .0-cross-amd64 ` : The fully qualified name of the Docker image to download. In this case, we want to use an * Azure Linux* image to target the * x64* architecture.
72+ - ` mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11 .0-cross-amd64 ` : The fully qualified name of the Docker image to download. In this case, we want to use an * Azure Linux* image to target the * x64* architecture.
7373- ` ./build.sh -s clr --cross -c Checked ` : The build command to run in the repo. In this case, we want to build the * Clr* subset in the * Checked* configuration with the cross compilation option.
7474
7575You might also want to interact with the container directly for a myriad of reasons, like running multiple builds in different paths for example. In this case, instead of passing the build script command to the ` docker ` command-line, pass the flag ` -it ` . When you do this, you will get access to a small shell within the container, which allows you to explore it, run builds manually, and so on, like you would on a regular terminal in your machine. Note that the containers' shell's built-in tools are very limited in comparison to the ones you probably have on your machine, so don't expect to be able to do full work there.
0 commit comments