assembly |
Specifies the assembly configuration as described in Build Assembly |
jkube.container-image.assembly.xxx
|
args |
Map specifying the value of Docker build args
which should be used when building the image with an external Dockerfile which uses build arguments. The key-value syntax is the same as when defining maven properties (or labels or env ).
This argument is ignored when no external Dockerfile is used. Build args can also be specified as properties as
described in Build Args |
jkube.container-image.args
|
buildOptions |
Map specifying the build options to provide to the docker daemon when building the image. These options map to the ones listed as query parameters in the
Docker Remote API and are restricted to simple options
(e.g.: memory, shmsize). If you use the respective configuration options for build options natively supported by the build configuration (i.e. noCache , cleanup=remove for buildoption forcerm=1 and args for build args) then these will override any corresponding options given here. The key-value syntax is the same as when defining environment variables or labels as described in Setting Environment Variables and Labels. |
jkube.container-image.buildOptions
|
createImageOptions |
Map specifying the create image options to provide to the docker daemon when pulling or
importing an image.
These options map to the ones listed as query parameters in the
Docker Remote API and are
restricted to simple options (e.g.: fromImage, fromSrc, platform). |
jkube.container-image.createImageOptions
|
cleanup |
Cleanup dangling (untagged) images after each build (including any containers created from them). Default is try which tries to remove the old image, but doesn’t fail the build if this is not possible because e.g. the image is still used by a running container. Use remove if you want to fail the build and none if no cleanup is requested. |
jkube.container-image.cleanup
|
contextDir |
Path to a directory used for the build’s context. You can specify the Dockerfile to use with dockerFile, which by default is the Dockerfile found in the contextDir . The Dockerfile can be also located outside of the contextDir , if provided with an absolute file path. See External Dockerfile for details. |
jkube.container-image.contextDir
|
cmd |
A command to execute by default (i.e. if no command is provided when a container for this image is started). See Startup Arguments for details. |
jkube.container-image.cmd
|
compression |
The compression mode how the build archive is transmitted to the docker daemon (k8s:build ) and how docker build archives are attached to this build as sources. The value can be none (default), gzip or bzip2 . |
|
dockerFile |
Path to a Dockerfile which also triggers Dockerfile mode. See External Dockerfile for details. |
jkube.container-image.dockerFile
|
dockerArchive |
Path to a saved image archive which is then imported. See Docker archive for details. |
jkube.container-image.dockerArchive
|
entryPoint |
An entrypoint allows you to configure a container that will run as an executable. See Startup Arguments for details. |
jkube.container-image.entrypoint
|
env |
The environments as described in Setting Environment Variables and Labels. |
jkube.container-image.env
e.g. jkube.container-image.env.FOO=bar |
filter |
Enable and set the delimiters for property replacements. By default, properties in the format ${..} are replaced with maven properties. You can switch off property replacement by setting this property to false . When using a single char like @ then this is used as a delimiter (e.g @…@ ). See Filtering for more details. |
jkube.container-image.filter
|
from |
The base image which should be used for this image. If not given this default to busybox:latest and is suitable for a pure data image. |
jkube.container-image.from
|
buildpacksBuilderImage |
Configure BuildPack builder OCI image for BuildPack Build. This field is applicable only in buildpacks build strategy. This overrides builder image specified in local ~/.pack/config.toml . If not specified this defaults to null .
This field is only applicable for buildpacks build strategy. |
jkube.container-image.buildpacksBuilderImage
|
fromExt |
Extended definition for a base image. This field holds a map of defined in key = "value" format. The known keys are:
|
jkube.container-image.fromExt
|
healthCheck |
Specifies the health check configuration as described in Build Healthcheck |
jkube.container-image.healthcheck.xxx
|
imagePullPolicy |
Specific pull policy for the base image. This overwrites any global pull policy.
See the global configuration option imagePullPolicy for the possible values and the default. |
jkube.container-image.imagePullPolicy
|
labels |
Labels as described in Setting Environment Variables and Labels. |
jkube.container-image.labels
e.g. jkube.container-image.label.foo=bar |
maintainer |
The author (MAINTAINER ) field for the generated image |
jkube.container-image.maintainer
|
noCache |
Don’t use Docker’s build cache. This can be overwritten by setting a system property docker.noCache when running maven. |
jkube.container-image.nocache
|
cacheFrom |
A list of image elements specifying image names to use as cache sources. |
jkube.container-image.cachefrom
e.g. jkube.container-image.cachefrom.1=my-cache-image:0.0.1 |
optimise |
if set to true then it will compress all the runCmds into a single RUN directive so that only one image layer is created. |
jkube.container-image.optimise
|
platforms |
List of platform elements with the target platforms (os/architecture) for which to build the image. Enables multi-platform builds.
You should use a base image that includes supports for multiple platforms such as:
-
x86-64: linux/amd64 , linux/i386
-
ARM architectures: linux/arm/v7 , linux/arm64
-
PowerPC: linux/ppc64le
Supported only when using the jib build strategy
|
jkube.container-image.platforms
|
ports |
The exposed ports which is a list of port elements, one for each port to expose. Whitespace is trimmed from each element and empty elements are ignored. The format can be either pure numerical ("8080") or with the protocol attached ("8080/tcp"). |
jkube.container-image.ports
e.g. jkube.container-image.ports.1=8080 |
shell |
Shell to be used for the runCmds. It contains arg elements which are defining the executable and its params. |
jkube.container-image.shell
|
runCmds |
Commands to be run during the build process. It contains run elements which are passed to the shell. Whitespace is trimmed from each element and empty elements are ignored. The run commands are inserted right after the assembly and after workdir into the Dockerfile. |
jkube.container-image.runCmds
e.g. jkube.container-image.runCmds.1=groupadd -r appUser |
skip |
if set to true disables building of the image. This config option is best used together with a maven property |
jkube.container-image.skip
|
tags |
List of additional tag elements with which an image is to be tagged after the build. Whitespace is trimmed from each element and empty elements are ignored. |
jkube.container-image.tags
e.g. jkube.container-image.tags.1=latest |
user |
User to which the Dockerfile should switch to the end (corresponds to the USER Dockerfile directive). |
jkube.container-image.user
|
volumes |
List of volume elements to create a container volume. Whitespace is trimmed from each element and empty elements are ignored. |
jkube.container-image.volumes
e.g. jkube.container-image.volumes.1=/path/to/expose |
workdir |
Directory to change to when starting the container. |
jkube.container-image.workdir
|