Documentation

Java

Community Module

These modules are maintained by the community, outside of the Testcontainers project.

Description

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Examples

Dependency:
<dependency>
    <groupId>io.github.sparsick.testcontainers.gitserver</groupId>
    <artifactId>testcontainers-gitserver</artifactId>
    <version>0.8.0</version>
    <scope>test</scope>
</dependency>
Usage:
var gitServer =
      new GitServerContainer(DockerImageName.parse("rockstorm/git-server:2.38"))
              .withGitRepo("testRepo") // overwrite the default git repository name
              .withGitPassword("12345"); // overwrite the default git password
gitServer.start();