Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Image-Build

Provides common utility and configuration to build images.

Config

The configuration is dynamically loaded from (sorted by highest priority)
  • Environment variables
    • prefixed with TCI_IMAGE-BUILD_<imageName>_
      • where imageName is the (sanitized) name of the image to build
    • prefixed with TCI_IMAGE-BUILD_
    • all properties are in UPPERCASE and use _ instead of . or -
  • System properties
    • prefixed with tci.image-build.<imageName>.
      • where imageName is the (sanitized) name of the image to build
    • prefixed with tci.image-build.

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 true
otherwise 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