Record -
docker
: DockerConfiguration
Docker annotation configuration.
Fields
- registry string
-
Docker registry URL.
- name string
-
Name of the Docker image. Default value is the file name of the executable .jar file.
- tag string
-
Docker image tag. Default value is
"latest"
.
- username string
-
Username for the Docker registry.
- password string
-
Password for the Docker registry.
- baseImage string
-
Base image to create the Docker image. Default value is
"openjdk:8-jre-alpine"
.
- buildImage boolean (default true)
-
Enable building the Docker image. Default value is
true
.
- push boolean (default false)
-
Enable pushing the Docker image to the registry. The value of the
buildImage
field must be set totrue
to be effective. Default value isfalse
.
- cmd string
-
CMD value for the generated Docker file. Default is
CMD java -jar ${APP} [--b7a.config.file=${CONFIG_FILE}] [--debug]
.
- enableDebug boolean (default false)
-
Enable Ballerina debugging. Default is
false
.
- debugPort int (default 5005)
-
Ballerina remote debugging port. Default is
5005
.
- dockerAPIVersion string
-
Docker API version.
- dockerHost string
-
Docker host IP and Docker port (e.g,. Minikube IP and Docker port). Default behavior is to use the
DOCKER_HOST
environment variable. IfDOCKER_HOST
is unavailable, use"unix:///var/run/docker.sock"
for Unix, use"npipe:////./pipe/docker_engine"
for Windows 10, or use"localhost:2375"
.
- dockerCertPath string
-
Docker certificate path. Default behavior is to use the
DOCKER_CERT_PATH
environment variable.