Utils module
tomodachi_testcontainers.utils
AWSClientConfig
get_docker_image
Returns a Docker image, pulling it if not exists on host.
PARAMETER | DESCRIPTION |
---|---|
image_id
|
TYPE:
|
docker_client_kwargs
|
TYPE:
|
Source code in src/tomodachi_testcontainers/utils.py
copy_files_to_container
Copies a folder or a file from the host to the container.
PARAMETER | DESCRIPTION |
---|---|
container
|
TYPE:
|
host_path
|
TYPE:
|
container_path
|
TYPE:
|
Source code in src/tomodachi_testcontainers/utils.py
copy_files_from_container
Copies a folder or a file from the container to the host.
PARAMETER | DESCRIPTION |
---|---|
container
|
TYPE:
|
container_path
|
TYPE:
|
host_path
|
TYPE:
|
Source code in src/tomodachi_testcontainers/utils.py
get_available_port
get_current_ip_address
Returns the current IP address of the host.
setup_logger
Outputs logs to stderr for better visibility in pytest output.
Inspired by testcontainers.core.utils.setup_logger
PARAMETER | DESCRIPTION |
---|---|
name
|
TYPE:
|