Skip to main content

Docker Build

Properties

PropertyTypeRequiredDescriptionDefaultExample
typestring✅ Yescomponent type Type of component to deploy. Determines which configuration block is required (helm_chart, terraform_module, docker_build, container_image, kubernetes_manifest, or job)-"terraform_module"
namestring✅ Yescomponent name Unique identifier for the component within the app. Used for referencing in dependencies and templates-"database"
var_namestringNovariable name for component output Optional name to use when storing component outputs as variables. If not specified, uses the component name-"db_endpoint"
dependenciesarrayNocomponent dependencies List of other components that must be deployed before this component. Automatically extracted from template references-"database"
dockerfilestring✅ Yespath to the Dockerfile Path to the Dockerfile to build. Supports external file sources: HTTP(S) URLs (https://example.com/Dockerfile), git repositories (git::https://github.com/org/repo//Dockerfile-"Dockerfile"
env_varsobjectNobuild environment variables Map of environment variables to pass to the Docker build command. Available during the build process. Supports Go templating-"GOLANG_VERSION"
public_repoPublicRepoConfigNopublic repository containing Dockerfile Clone a public GitHub repository containing the Dockerfile and build context. Requires repo, branch, and optionally directory--
connected_repoConnectedRepoConfigNoconnected repository containing Dockerfile Use a Nuon-connected repository containing the Dockerfile and build context. Requires repo, branch, and optionally directory--

Property Details

type

Examples:
"terraform_module"
"helm_chart"
"docker_build"
"container_image"
"kubernetes_manifest"

name

Examples:
"database"
"api-server"
"frontend"

var_name

Examples:
"db_endpoint"
"api_host"

dependencies

Examples:
"database"
"infrastructure"

dockerfile

Examples:
"Dockerfile"
"docker/Dockerfile.prod"
"https://github.com/myorg/myrepo/raw/main/Dockerfile"

env_vars

Examples:
"GOLANG_VERSION"
"NODE_ENV"