Skip to content

brice-laurencin/testcontainers-ceph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testcontainers Ceph

main

Maven Central

A Testcontainers implementation for Ceph.

How to use

You can use the @Container annotation to start a Ceph container.

Default image

@Container
CephContainer container = new CephContainer();

Custom image

@Container
CephContainer container = new CephContainer(DockerImageName.parse("quay.io/ceph/demo"));

or override with a non-standard, but yet compliant image, for ex if you make a new image based on quay.io/ceph/demo

@Container
CephContainer container = new CephContainer(
        DockerImageName.parse("our-prebuilt-ceph-demo-image")
            .asCompatibleSubstituteFor("quay.io/ceph/demo")
);

Configure access key and secret key

@Container
CephContainer container = new CephContainer("quay.io/ceph/demo")
    .withCephAccessKey("accessKey")
    .withCephAccessKey("secretKey");

How to use it?


Include it into your project dependencies

If you're using Maven:

<dependency>
  <groupId>io.github.jarlah</groupId>
  <artifactId>testcontainers-ceph</artifactId>
  <version>VERSION</version>
</dependency>

or if you're using Gradle:

dependencies {
    testImplementation 'io.github.jarlah:testcontainers-ceph:<VERSION>'
}

About

A Testcontainers implementation for Ceph

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%