package config

import "github.com/testcontainers/testcontainers-go/internal/config"

Index

Constants

const ReaperDefaultImage = "testcontainers/ryuk:0.7.0"

Functions

func Reset

func Reset()

Reset resets the singleton instance of the Config struct, allowing to read the configuration again. Handy for testing, so do not use it in production code This function is not thread-safe

Types

type Config

type Config struct {
	Host                    string        `properties:"docker.host,default="`
	TLSVerify               int           `properties:"docker.tls.verify,default=0"`
	CertPath                string        `properties:"docker.cert.path,default="`
	HubImageNamePrefix      string        `properties:"hub.image.name.prefix,default="`
	RyukDisabled            bool          `properties:"ryuk.disabled,default=false"`
	RyukPrivileged          bool          `properties:"ryuk.container.privileged,default=false"`
	RyukReconnectionTimeout time.Duration `properties:"ryuk.reconnection.timeout,default=10s"`
	RyukConnectionTimeout   time.Duration `properties:"ryuk.connection.timeout,default=1m"`
	RyukVerbose             bool          `properties:"ryuk.verbose,default=false"`
	TestcontainersHost      string        `properties:"tc.host,default="`
}

Config represents the configuration for Testcontainers

func Read

func Read() Config

Read reads from testcontainers properties file, if it exists it is possible that certain values get overridden when set as environment variables

Source Files

config.go

Version
v0.31.0
Published
May 9, 2024
Platform
js/wasm
Imports
7 packages
Last checked
2 seconds ago

Tools for package owners.