Provides common utility and configuration to build images.
The configuration is dynamically loaded from (sorted by highest priority)
- Environment variables
- prefixed with
TCI_IMAGE-BUILD_<imageName>_- where
imageNameis the (sanitized) name of the image to build
- where
- prefixed with
TCI_IMAGE-BUILD_ - all properties are in UPPERCASE and use
_instead of.or-
- prefixed with
- System properties
- prefixed with
tci.image-build.<imageName>.- where
imageNameis the (sanitized) name of the image to build
- where
- prefixed with
tci.image-build.
- prefixed with
NOTE: Sanitized image-names only include alphanumeric characters, _ or -. All other characters are replaced by _
Full list of configuration options
| Property | Type | Default | Notes |
|---|---|---|---|
delete-on-exit |
bool |
false |
Should the image be deleted on exit? |
image-cache-ignore |
bool |
false |
Adds the tci.image-cache.ignore label.This can be used when an image can't be deleted after the build but it should not be saved in the image cache. |
logger-for-build-prefix |
string |
container.build. |
Prefix used for the build logger |
cache-from |
string |
- | Only applies to BuildKit (native) build. See Docker docs for details. |
cache-to |
string |
- | Only applies to BuildKit (native) build. See Docker docs for details. |
save-cache-in-background |
bool |
if cache-to set trueotherwise false |
Builds the image the first time WITHOUT cache-to and the async in the background again WITH cache-to. This way saving the cache does not delay test execution. |
wait-for-save-cache-in-background |
bool |
true |
Wait until all caches are saved before terminating |