language: java
displayName: Java
templateName: "dockerfile-java"
description: "This template is used to create a Dockerfile for a Java application"
versions: ["0.0.1"]
defaultVersion: "0.0.1"
type: "dockerfile"
variables:
  - name: "PORT"
    type: "int"
    kind: "port"
    default:
      value: "80"
    description: "the port exposed in the application"
    versions: ">=0.0.1"
  - name: "BUILDERVERSION"
    type: "string"
    kind: "containerImageVersion"
    default:
      value: "3"
    description: "the version of maven used during the builder stage to generate the executable"
    exampleValues:
      ["3-eclipse-temurin-17", "3-eclipse-temurin-21", "3 (jdk-21)"]
    versions: ">=0.0.1"
  - name: "VERSION"
    type: "string"
    kind: "containerImageVersion"
    default:
      value: "21-jre"
    description: "the java version used by the application"
    exampleValues: ["11-jre", "17-jre", "19-jre", "21-jre"]
    versions: ">=0.0.1"
  - name: "DOCKERFILENAME"
    type: "string"
    kind: "dockerFileName"
    default:
      value: "Dockerfile"
      disablePrompt: true
    description: "the name of the Dockerfile"
    versions: ">=0.0.1"