Record - docker : DockerConfiguration

Docker annotation configuration.

Closed record

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 docker registry.

  • password string?
  • Password for docker registry.

  • baseImage string?
  • Base image to create the docker image. Default value is "ballerina/jre8:v1".

  • buildImage boolean (default true)
  • Enable building docker image. Default value is true.

  • push boolean (default false)
  • Enable pushing docker image to registry. Field buildImage must be set to true to be effective. Default value is false.

  • cmd string?
  • Value for CMD for the generated Dockerfile. Default is CMD java -jar ${APP} [--b7a.config.file=${CONFIG_FILE}] [--debug].

  • enableDebug boolean (default false)
  • Enable ballerina debug. Default is false.

  • debugPort int (default 5005)
  • Ballerina remote debug 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 is to use DOCKER_HOST environment variable. If DOCKER_HOST is unavailable, use "unix:///var/run/docker.sock" for Unix or use "tcp://localhost:2375" for Windows.

  • dockerCertPath string?
  • Docker certificate path. Default is to use "DOCKER_CERT_PATH" environment variable.

  • env map<boolean | int | float | decimal | string>
  • Environment variables for container.

  • dockerConfigPath string?
  • Docker config file path.

  • uberJar boolean?
  • Use ballerina uber jar. Default is false.