service.yaml
Service configuration.
Field | Type | Docs |
---|---|---|
name | string | The name of the service. |
requires | (sequence[string]|string) | A list of any services require for this service to function |
containers | sequence[(string|container)] | A list of containers that form this service. If this is not supplied then any Dockerfile is assumed. |
profiles | map[map[any]] | A mapping from profile name to profile-specific values. |
branches | map[string] | A mapping from branch pattern to profile name. |
config | any | Arbitrary application defined configuration parameters for a service. |
istio | (boolean|istio) | Run istioctl kube-inject with the specified settings before applying yaml. |
container
Defines and describes the build inputs for a container.
Field | Type | Docs |
---|---|---|
dockerfile | string | The path to the dockerfile. |
name | string | The name to use for the container. |
context | string | The build context. |
args | map[string] | Build arguments. |
builder | ('docker'|'imagebuilder') | The docker image builder to be used: `docker` for `docker build`, `imagebuilder` for `openshift/imagebuilder`. |
rebuild | rebuild |
rebuild
Rebuild metadata for containers. When you specify the appropriate rebuild properties, forge will use these to perform fast incremental container builds.
Field | Type | Docs |
---|---|---|
root | string | The root path where sources live inside the container. All files and directories listed in the sources array are copied to this location prior to executing a build. |
command | string | The command that is executed inside the container in order to perform a build. |
sources | sequence[string] | An array of files or directories that will be copied into the container prior to performing a build. |
istio
Configures how istioctl kube-inject is called before applying yaml.
Field | Type | Docs |
---|---|---|
enabled | boolean | If true run istioctl kube-inject before applying yaml. |
includeIPRanges | sequence[string] | Comma separated list of IP ranges in CIDR form passed to istioctl kube-inject. |