Welcome to the Testcontainers Workshop Repository! This repository is dedicated to hands-on examples and exercises for learning and mastering Testcontainers, an advanced tool for running applications in isolated Docker containers.
Before you start, ensure you have the following installed:
- Clone the Repository: Clone this repository to your local machine using
git clone
. - Configure Docker: Ensure Docker is running on your system as Testcontainers will need it to create and manage containers.
- Install Dependencies: Run
mvn install
to install the necessary dependencies.
This workshop includes the following modules:
- 01-basic-examples: Contains basic examples of using Testcontainers.
- 02-spring-boot-examples: Contains examples for integrating Testcontainers with Spring Boot applications.
To run the examples in each module:
- Navigate to the specific module directory (
01-basic-examples
or02-spring-boot-examples
). - Execute the tests using
mvn test
.