Dagger
Search

testcontainers

No long description provided.

Installation

dagger install github.com/vito/daggerverse/testcontainers@cc3ab6f8db076c23bd31be9fd95bd1139c8925c4

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)
}

startDocker() 🔗

StartDocker allows you to start the Docker daemon in the background to guarantee that it stays running between test suites.

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

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)
}