DefaultContainerConfig

class DefaultContainerConfig(val adapterConfig: InputStream? = null, val beforeScript: InputStream? = null, val extraFiles: Map<String, InputStream> = mutableMapOf(), val baseImage: String = DEFAULT_BASE_IMAGE) : LiberatorContainerExtension.ContainerConfig(source)

A ContainerConfig that builds a Liberator image from the bundled Dockerfile and generates a fresh RSA KeyMaster key pair, deploying the public key into the container.

Parameters

adapterConfig

optional adapter configuration copied to /app/adapter.conf.

beforeScript

optional script copied to /app/beforeScript.sh and run before startup.

extraFiles

additional files to copy into the container, keyed by destination path.

baseImage

the base Docker image the Liberator image is built from.

Constructors

Link copied to clipboard
constructor(adapterConfig: InputStream? = null, beforeScript: InputStream? = null, extraFiles: Map<String, InputStream> = mutableMapOf(), baseImage: String = DEFAULT_BASE_IMAGE)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val container: GenericContainer<*>

The container to start; its exposed ports are mapped to random host ports.

Link copied to clipboard
open override val dataSourcePort: Int

The container port serving the DataSource endpoint.

Link copied to clipboard
Link copied to clipboard
open override val httpPort: Int

The container port serving the Liberator HTTP/RTTP endpoint.

Link copied to clipboard
open override val keymasterConfiguration: IKeyMasterConfiguration

KeyMaster configuration used to sign the credentials of connecting clients.