Dagger
Search

testcontainers

No long description provided.

Installation

dagger install github.com/vito/daggerverse/testcontainers@65af9ad7cb8c38684445a1aef94917dd1a72eb1e

Entrypoint

Return Type
Testcontainers
Example
func (m *myModule) example() *Testcontainers  {
	return dag.
			Testcontainers()
}
@function
def example() -> dag.Testcontainers:
	return (
		dag.testcontainers()
	)
@func()
example(): Testcontainers {
	return dag
		.testcontainers()
}

Types

Testcontainers 🔗

docker() 🔗

Return Type
Service !
Example
Function Testcontainers.Docker is not accessible from the testcontainers module
func (m *myModule) example()   {
	return dag.
			Testcontainers().
			Docker()
}
@function
def example() -> :
	return (
		dag.testcontainers()
		.docker()
	)
@func()
example():  {
	return dag
		.testcontainers()
		.docker()
}

withDocker() 🔗

WithDocker allows you to override the Docker daemon used by Testcontainers.

Return Type
Testcontainers !
Arguments
NameTypeDefault ValueDescription
dockerService !-No description provided
Example
Function Testcontainers.withDocker is not accessible from the testcontainers module
func (m *myModule) example(docker )   {
	return dag.
			Testcontainers().
			WithDocker(docker)
}
@function
def example(docker: ) -> :
	return (
		dag.testcontainers()
		.with_docker(docker)
	)
@func()
example(docker: ):  {
	return dag
		.testcontainers()
		.withDocker(docker)
}

dockerService() 🔗

DockerService exposes the Docker service so that you can start it before running a bunch of test suites, keeping it around across the full run even if there is excessive idle time due to load.

Return Type
Service !
Example
Function Testcontainers.dockerService is not accessible from the testcontainers module
func (m *myModule) example()   {
	return dag.
			Testcontainers().
			DockerService()
}
@function
def example() -> :
	return (
		dag.testcontainers()
		.docker_service()
	)
@func()
example():  {
	return dag
		.testcontainers()
		.dockerService()
}

setup() 🔗

Setup attaches a Docker daemon to the container and points Testcontainers to it.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
ctrContainer !-No description provided
Example
Function Testcontainers.setup is not accessible from the testcontainers module
func (m *myModule) example(ctr )   {
	return dag.
			Testcontainers().
			Setup(ctr)
}
@function
def example(ctr: ) -> :
	return (
		dag.testcontainers()
		.setup(ctr)
	)
@func()
example(ctr: ):  {
	return dag
		.testcontainers()
		.setup(ctr)
}