apiVersion: xl/v2
kind: Blueprint

metadata:
  name: Deploy a single container to Docker
  description: |
    This blueprint defines an application for a single Docker container
  author: XebiaLabs
  version: 2.0
  instructions: Read xebialabs/USAGE-docker-application.md to learn how to use this blueprint.

spec:
  parameters:
  - name: DockerImageRepository
    type: Input
    prompt: What is the Docker image repository?
    default: nginx
  - name: DockerImageTag
    type: Input
    prompt: What is the Docker image tag?
    default: latest
  - name: ExposePort
    type: Confirm
    prompt: Should the Docker container expose a port?
    default: true
  - name: ContainerPort
    type: Input
    prompt: What is the container port to expose?
    promptIf: ExposePort
    default: 80
  - name: HostPort
    type: Input
    prompt: At which host port should that port be exposed?
    promptIf: ExposePort
    default: 8080
  - name: Standalone
    type: Confirm
    value: true

  files:
  - path: xebialabs/docker-application.yaml.tmpl
  - path: xebialabs/USAGE-docker-application.md.tmpl
