InitDockerSuiteOptions
InitDockerSuiteOptions =
object
Defined in: docker/init-docker-suite.ts:13
Properties
Section titled “Properties”containerNamePrefix?
Section titled “containerNamePrefix?”
optionalcontainerNamePrefix?:string
Defined in: docker/init-docker-suite.ts:43
Prefix for the image and container names.
Defaults to “test-”.
containerRunOptions?
Section titled “containerRunOptions?”
optionalcontainerRunOptions?: (name) =>Except<DockerContainerRunOptions,"name"|"context"|"detach">
Defined in: docker/init-docker-suite.ts:34
Options to use when starting a container.
The suite owns the name, the context and the detach flag: it has to know the name to remove the container, it runs every command against one context, and a container started in the foreground would never hand control back to the test.
Parameters
Section titled “Parameters”DockerContainerName
Returns
Section titled “Returns”Except<DockerContainerRunOptions, "name" | "context" | "detach">
context?
Section titled “context?”
optionalcontext?:string
Defined in: docker/init-docker-suite.ts:46
Docker context to run every command of this suite against.
onContainerStarted?
Section titled “onContainerStarted?”
optionalonContainerStarted?: (name) =>void|Promise<void>
Defined in: docker/init-docker-suite.ts:18
Called after a container is started.
Parameters
Section titled “Parameters”DockerContainerName
Returns
Section titled “Returns”void | Promise<void>
onContainerStarting?
Section titled “onContainerStarting?”
optionalonContainerStarting?: (name) =>void|Promise<void>
Defined in: docker/init-docker-suite.ts:15
Called with the name a container is about to be started under.
Parameters
Section titled “Parameters”DockerContainerName
Returns
Section titled “Returns”void | Promise<void>
onContainerStopped?
Section titled “onContainerStopped?”
optionalonContainerStopped?: (name) =>void|Promise<void>
Defined in: docker/init-docker-suite.ts:24
Called after a container is removed.
Parameters
Section titled “Parameters”DockerContainerName
Returns
Section titled “Returns”void | Promise<void>
onContainerStopping?
Section titled “onContainerStopping?”
optionalonContainerStopping?: (name) =>void|Promise<void>
Defined in: docker/init-docker-suite.ts:21
Called before a container is removed, while it is still reachable.
Parameters
Section titled “Parameters”DockerContainerName
Returns
Section titled “Returns”void | Promise<void>
reuseContainerInstance?
Section titled “reuseContainerInstance?”
optionalreuseContainerInstance?:boolean
Defined in: docker/init-docker-suite.ts:49
Whether to reuse the same container instance across tests.