cd /path/to/netty/
docker compose -f docker/docker-compose.yaml -f docker/docker-compose.centos-6.18.yaml run test
docker compose -f docker/docker-compose.yaml -f docker/docker-compose.centos-6.111.yaml run test
docker compose -f docker/docker-compose.yaml run cross-compile-aarch64-build
The default version of aarch64 gcc is 4.9-2016.02. Update the parameter gcc_version in docker-compose.yaml to use a version you want.
docker compose -f docker/docker-compose.ubuntu-20.04.yaml run cross-compile-riscv64-build
etc, etc
The Dockerfiles verify downloaded toolchains (SDKMAN! installer, rustup-init, ARM GCC) against a pinned SHA-256 before using them.
SDKMAN! does not version its installer script, so if a docker build fails with a checksum mismatch for sdkman-install.sh, review the new script and refresh the pinned hash in all Dockerfiles with:
docker/update-sdkman-sha.sh
Use docker/update-sdkman-sha.sh --check to only verify whether the pinned hashes are still current.
Dockerfile.centos7 and Dockerfile.cross_compile_aarch64 set NETTY_CHECK_NATIVE_GLIBC_VERSIONS=true, which activates the check-native-glibc-versions profile in pom.xml.
It fails the build if a Linux native library requires a glibc symbol version newer than GLIBC_2.14 (x86_64) or GLIBC_2.17 (aarch64).
Version needs marked as WEAK are only reported, as they do not prevent loading the library.
Modules can opt out by setting the skipNativeGlibcVersionsCheck property to true, which codec-native-quic does.
The check is done by .github/scripts/check_native_glibc_versions.sh, which can also be run by hand:
bash .github/scripts/check_native_glibc_versions.sh transport-native-epoll/target/classes/META-INF/native
Builds outside of these images are not checked, as they are usually done against a newer glibc.