docker
dev_tool.config.docker
log = logging.getLogger(__name__)
module-attribute
DockerConfig
A class for managing Docker configuration settings.
This class provides methods for creating default Docker configurations based on environment variables and user settings.
create_default_docker_config
A method that creates a default Docker configuration dictionary.
This method combines user-provided configuration with environment variables to create a complete Docker container configuration.
Parameters:
-
container_name(str) –The name to use for the Docker container.
-
docker_config(dict) –The user-provided Docker configuration dictionary.
Returns:
-
dict–A complete Docker configuration dictionary.
Source code in dev_tool/config/docker.py
get_dockerfile_path
Get the Dockerfile path - project Dockerfile takes precedence over default.
Returns:
-
Path | None–Path to Dockerfile to use, or None if using standard postgres image