netty5/docker
Chris Vest a179db8066
Raise the Netty 5 minimum required Java version to Java 11. (#10650)
Raise the Netty 5 minimum required Java version to Java 11.

Motivation:
Java 11 has been out for some time, and Netty 5 is still some ways out.
There are also many good features in Java 11 that we wish to use, such as VarHandles, var-keyword, and the module system.
There is no reason for Netty 5 to not require Java 11, since Netty 4.x will still be supported for the time being.

Modification:
Remove everything in the pom files related to Java versions older than Java 11.
Remove the animal-sniffer plug-in and rely on the `--release` compiler flag instead.
Remove docker files related to Java versions older than Java 11.
Remove the copied SCTP APIs -- we should test this commit independently on Windows.
Remove the OpenJdkSelfSignedCertGenerator.java file and just always use Bouncy Castle for generating self-signed certificates for testing.
Make netty-testsuite tests pass by including Bouncy Castle as a test dependency, so we're able to generate our self-signed certificate.

Result:
Java 11 is now the minimum required Java version.
2020-10-12 14:13:01 +02:00
..
docker-compose.centos-6.111.yaml Update Java versions (#10273) 2020-05-12 08:49:09 +02:00
docker-compose.centos-6.112.yaml Cleanup docker / docker-compose configs (#9473) 2019-08-16 14:00:18 +02:00
docker-compose.centos-6.113.yaml Use correct JDK 13 version (#10276) 2020-05-13 07:18:43 +02:00
docker-compose.centos-6.114.yaml Update Java versions (#10273) 2020-05-12 08:49:09 +02:00
docker-compose.centos-6.graalvm111.yaml Update GraalVM with JDK 8 and add GraalVM with JDK 11 (#10333) 2020-06-02 11:53:18 +02:00
docker-compose.centos-6.openj9111.yaml Update Java versions (#10273) 2020-05-12 08:49:09 +02:00
docker-compose.centos-7.111.yaml Update Java versions (#10273) 2020-05-12 08:49:09 +02:00
docker-compose.centos-7.112.yaml Cleanup docker / docker-compose configs (#9473) 2019-08-16 14:00:18 +02:00
docker-compose.centos-7.113.yaml Use correct JDK 13 version (#10276) 2020-05-13 07:18:43 +02:00
docker-compose.centos-7.114.yaml Update Java versions (#10273) 2020-05-12 08:49:09 +02:00
docker-compose.yaml Disable Maven build HTTP connection pooling (#10558) 2020-09-09 17:08:03 +02:00
Dockerfile.centos Raise the Netty 5 minimum required Java version to Java 11. (#10650) 2020-10-12 14:13:01 +02:00
Dockerfile.cross_compile_aarch64 Raise the Netty 5 minimum required Java version to Java 11. (#10650) 2020-10-12 14:13:01 +02:00
README.md Raise the Netty 5 minimum required Java version to Java 11. (#10650) 2020-10-12 14:13:01 +02:00

Using the docker images

cd /path/to/netty/

centos 6 with java 11

docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.centos-6.111.yaml run test

centos 7 with java 11

docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.centos-7.111.yaml run test

aarch64 cross compile for transport-native-epoll on X86_64

docker-compose -f docker/docker-compose.yaml run cross-compile-aarch64

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.

etc, etc