public class FoundationDBContainer extends org.testcontainers.containers.GenericContainer<FoundationDBContainer>
Tested on a FoundationDB version 7.1.61 (the default version if not specified).
Other docker images can be used from foundationdb docker hub. The FoundationDB API version must be aligned with the docker version used (eg. for 7.1.61 use api version 710).
FDB requires the native client libraries be installed separately from the java bindings. Install the libraries before using the java FDB client. Also, it might have issues working on newer macOS with the java bindings, try using java 8 and `export DYLD_LIBRARY_PATH=/usr/local/lib` in environment variables after installing FDB clients locally.
| Modifier and Type | Class and Description |
|---|---|
static class |
FoundationDBContainer.DatabaseInitializationException |
static class |
FoundationDBContainer.ProxyInitializationException |
| Constructor and Description |
|---|
FoundationDBContainer()
Creates a
FoundationDBContainer with the default version 7.1.61 |
FoundationDBContainer(org.testcontainers.utility.DockerImageName dockerImageName)
Creates a
FoundationDBContainer with a specific docker image version. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo) |
protected void |
containerIsStopping(com.github.dockerjava.api.command.InspectContainerResponse containerInfo) |
void |
doStart() |
java.lang.String |
getClusterFilePath()
Returns a temporary file path, containing the cluster connection string, and that can be used by the
Foundation DB client to connect to the cluster server.
|
java.lang.String |
getConnectionString() |
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, configure, containerIsCreated, containerIsStarted, containerIsStarting, containerIsStarting, containerIsStopped, copyFileFromContainer, createVolumeDirectory, dependsOn, dependsOn, dependsOn, equals, failed, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDependencies, getDockerClient, getDockerImageName, getEnv, getEnvMap, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLabels, getLinkedContainers, getLivenessCheckPort, getLivenessCheckPortNumbers, getLivenessCheckPorts, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getShmSize, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getTmpFsMapping, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isHostAccessible, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setContainerDef, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setHostAccessible, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, toString, waitingFor, waitUntilContainerStarted, withAccessToHost, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCopyToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withReuse, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindcopyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, execInContainer, execInContainer, execInContainerWithUser, execInContainerWithUser, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunningpublic FoundationDBContainer()
FoundationDBContainer with the default version 7.1.61public FoundationDBContainer(org.testcontainers.utility.DockerImageName dockerImageName)
FoundationDBContainer with a specific docker image version.dockerImageName - the docker image with the desired version.public java.lang.String getConnectionString()
public java.lang.String getClusterFilePath()
public void doStart()
doStart in class org.testcontainers.containers.GenericContainer<FoundationDBContainer>protected void containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)
containerIsStarted in class org.testcontainers.containers.GenericContainer<FoundationDBContainer>protected void containerIsStopping(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)
containerIsStopping in class org.testcontainers.containers.GenericContainer<FoundationDBContainer>