Dagger
Search

testcontainers

No long description provided.

Installation

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

Entrypoint

Return Type
Testcontainers
Example
dagger -m github.com/vito/daggerverse/testcontainers@cc3ab6f8db076c23bd31be9fd95bd1139c8925c4 call \
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
dagger -m github.com/vito/daggerverse/testcontainers@cc3ab6f8db076c23bd31be9fd95bd1139c8925c4 call \
 docker
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
dagger -m github.com/vito/daggerverse/testcontainers@cc3ab6f8db076c23bd31be9fd95bd1139c8925c4 call \
 with-docker
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
dagger -m github.com/vito/daggerverse/testcontainers@cc3ab6f8db076c23bd31be9fd95bd1139c8925c4 call \
 start-docker
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
dagger -m github.com/vito/daggerverse/testcontainers@cc3ab6f8db076c23bd31be9fd95bd1139c8925c4 call \
 setup
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)
}