Registry / testing / ory-dockertest

ory-dockertest

JSON →
library3.3.5+incompatiblegogounverified

Package dockertest provides utilities for spinning up Docker containers for integration testing.

go get github.com/ory/dockertest
INSTALL
IMPORT
SIG · ORY-DOCKERTEST
O
ory-dockertest
testinggov3.3.5+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dockertest
github.com/ory/dockertest

Start a Redis container for testing

package main import ( "fmt" "github.com/ory/dockertest" ) func main() { pool, err := dockertest.NewPool("") if err != nil { panic(err) } resource, err := pool.Run("redis", "latest", nil) if err != nil { panic(err) } fmt.Println("Redis container started:", resource.Container.ID) }
Debug
Known issues
gotchaRequires Docker to be installed and running.
fix
Ensure Docker is available in the test environment.
affects: all
Upgrade
Version history
3.3.5+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ory-dockertest — go get ory-dockertest · libregistry