Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 1.59 KB

README.md

File metadata and controls

68 lines (50 loc) · 1.59 KB

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>'
}