A Testcontainers implementation for Ceph.
You can use the @Container
annotation to start a Ceph container.
@Container
CephContainer container = new CephContainer();
@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")
);
@Container
CephContainer container = new CephContainer("quay.io/ceph/demo")
.withCephAccessKey("accessKey")
.withCephAccessKey("secretKey");
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>'
}