testcontainers
No long description provided.
Installation
dagger install github.com/vito/daggerverse/testcontainers@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff
Entrypoint
Return Type
Testcontainers
Example
dagger -m github.com/vito/daggerverse/testcontainers@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff 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@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff 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
Name | Type | Default Value | Description |
---|---|---|---|
docker | Service ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/testcontainers@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff 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)
}
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
dagger -m github.com/vito/daggerverse/testcontainers@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff call \
docker-service
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
Name | Type | Default Value | Description |
---|---|---|---|
ctr | Container ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/testcontainers@bc816f2d1784c2af7f4e1bd93edd4645ac21ccff 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)
}