How to use test containers with Java Platform Module System
- Maven 3+
- JDK 17+
- Docker
- Git
# Clone this repository
git clone git@github.com:SalathielGenese/testcontainer-jpms.git
# Navigate to project root
cd testcontainer-jpms
# Run test
mvn clean test
TestContainer is a tool that help spin Docker containers in our apps.
In this project, the image used is httpd:alpine
and therefore, is a Linux-based container.
NOTE: If your Windows' Docker Desktop is not set up to run Linux Containers, you have two options:
- Change your Windows' Docker Desktop mode to Linux Containers
- Edit the image used in the test within this project:
src/test/java/name/genese/salathiel/test/testcontainerjpms/HttpdTest.java
This project is under MIT license.