Type Manifest
Schema URL https://catalog.lintel.tools/schemas/schemastore/cloud-foundry-application-manifest/latest.json
Source https://www.schemastore.org/cloudfoundry-application-manifest.json

Validate with Lintel

npx @lintel/lintel check
Type: Manifest

Definitions

Manifest object

A manifest describes a Cloud Foundry application and can be used to deploy it to a Foundation. For authoritative reference, see https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html.

applications Application[] required
version integer

The version of the manifest schema. Currently, the only valid version is 1.

Default: 1
Application object
name string required

Name of the app.

buildpacks string[]

buildpacks may contain:

a) An empty array, which will automatically select the appropriate default buildpack according to the coding language; b) An array of one or more URLs pointing to buildpacks; c) An array of one or more installed buildpack names.

command string

The command used to start the process; this overrides start commands from Procfiles and buildpacks.

disk_quota string

The disk limit for all instances of the web process. This attribute requires a unit of measurement: B, K, KB, M, MB, G, GB, T, or TB in upper case or lower case.

docker object

If your app is contained in a Docker image, the docker attribute specifies it and an Docker user name (optional). This attribute is a combination of push options that include --docker-image and --docker-username.

2 nested properties
image string required
username string
env object

A key-value mapping of environment variables to be used for the app when running.

health-check-type enum

Type of liveliness health check to perform; 'none' is deprecated and an alias to process. Default is 'port'.

Liveness health checks are performed to validate that app instances are running. When liveness health checks fail, the app instance is marked as crashed and is restarted.

Values: "port" "process" "http"
health-check-http-endpoint string

Endpoint called to determine if the app is healthy when readiness-health-check-type='http'. Default is '/'.

health-check-invocation-timeout integer

The timeout in seconds for individual health check requests for http and port health checks. Default is 1 (second).

health-check-interval integer

The amount of time in seconds between starting individual health check requests for HTTP and port health checks. Default is 30 (seconds).

readiness-health-check-type enum

Type of readiness health check to perform. Default is 'process'.

Readiness health checks are performed to validate that app instances are ready to serve requests. When readiness health checks fail, the app instance is marked as not ready and removed from the route pool for the app.

Values: "port" "process" "http"
readiness-health-check-http-endpoint string

Endpoint called to determine if the app is ready to serve requests when readiness-health-check-type='http'. Default is '/'.

readiness-health-check-invocation-timeout integer

The timeout in seconds for individual readiness health check requests for HTTP and port health checks. Default is 1 (second).

readiness-health-check-interval integer

The amount of time in seconds between starting individual readiness health check requests for HTTP and port health checks. Default is 30 (seconds).

instances integer

The number of instances to run. Default is 1.

log-rate-limit-per-second string

The log-rate-limit-per-second attribute specifies the log rate limit for all instances of an app. This attribute requires a unit of measurement: B, K, KB, M, MB, G, or GB, in either uppercase or lowercase. Default is 16K.

memory string

The memory attribute specifies the memory limit for all instances of an app. This attribute requires a unit of measurement: M, MB, G, or GB, in either uppercase or lowercase. Default is 1G.

metadata object

The metadata attribute tags your apps with additional information. You can specify two types of metadata: labels and annotations.

2 nested properties
annotations object
labels object
no-route boolean

When set to true, any routes specified with the routes attribute will be ignored and any existing routes will be removed. Default is false.

path string

The path attribute tells Cloud Foundry the directory location in which it can find your app. The directory specified as the path, either as an attribute or as a parameter on the command line, becomes the location where the buildpack Detect script runs.

processes Process[]

List of configurations for individual process types.

random-route boolean

Creates a random route for the app if true. If routes is specified, if the app already has routes, or if no-route is specified, this field is ignored regardless of its value. Default is false.

routes Route[]

List declaring HTTP and TCP routes to be mapped to the app.

services ServiceElement[]

Apps can bind to services such as databases, messaging, and key-value stores. The services block consists of a heading and one or more service instance names.

sidecars Sidecar[]

The sidecars attribute specifies additional processes to run in the same container as your app.

stack string

The root filesystem to use with the buildpack, for example cflinuxfs4.

timeout integer

The duration in seconds that health checks can fail before the process is restarted. Default is 60 (seconds).

Docker object

If your app is contained in a Docker image, the docker attribute specifies it and an Docker user name (optional). This attribute is a combination of push options that include --docker-image and --docker-username.

image string required
username string
Env object

A key-value mapping of environment variables to be used for the app when running.

HealthCheckType enum

Type of liveliness health check to perform; 'none' is deprecated and an alias to process. Default is 'port'.

Liveness health checks are performed to validate that app instances are running. When liveness health checks fail, the app instance is marked as crashed and is restarted.

HealthCheckHTTPEndpoint string

Endpoint called to determine if the app is healthy when readiness-health-check-type='http'. Default is '/'.

HealthCheckInvocationTimeout integer

The timeout in seconds for individual health check requests for http and port health checks. Default is 1 (second).

HealthCheckInterval integer

The amount of time in seconds between starting individual health check requests for HTTP and port health checks. Default is 30 (seconds).

ReadinessHealthCheckType enum

Type of readiness health check to perform. Default is 'process'.

Readiness health checks are performed to validate that app instances are ready to serve requests. When readiness health checks fail, the app instance is marked as not ready and removed from the route pool for the app.

ReadinessHealthCheckHTTPEndpoint string

Endpoint called to determine if the app is ready to serve requests when readiness-health-check-type='http'. Default is '/'.

ReadinessHealthCheckInvocationTimeout integer

The timeout in seconds for individual readiness health check requests for HTTP and port health checks. Default is 1 (second).

ReadinessHealthCheckInterval integer

The amount of time in seconds between starting individual readiness health check requests for HTTP and port health checks. Default is 30 (seconds).

Metadata object

The metadata attribute tags your apps with additional information. You can specify two types of metadata: labels and annotations.

annotations object
labels object
KVMetadata object
Process object

This configuration is for the individual process. Each process is created if it does not already exist. For backwards compatibility, the web process configuration may be placed at the top level of the application configuration, rather than listed under processes. However, if there is a process with type: web listed under processes, this configuration will override any at the top level.

type string required

The identifier for the processes to be configured.

command string

The command used to start the process; this overrides start commands from Procfiles and buildpacks.

disk_quota string

The disk limit for all instances of the web process. This attribute requires a unit of measurement: B, K, KB, M, MB, G, GB, T, or TB in upper case or lower case.

health-check-type enum

Type of liveliness health check to perform; 'none' is deprecated and an alias to process. Default is 'port'.

Liveness health checks are performed to validate that app instances are running. When liveness health checks fail, the app instance is marked as crashed and is restarted.

Values: "port" "process" "http"
health-check-http-endpoint string

Endpoint called to determine if the app is healthy when readiness-health-check-type='http'. Default is '/'.

health-check-invocation-timeout integer

The timeout in seconds for individual health check requests for http and port health checks. Default is 1 (second).

health-check-interval integer

The amount of time in seconds between starting individual health check requests for HTTP and port health checks. Default is 30 (seconds).

readiness-health-check-type enum

Type of readiness health check to perform. Default is 'process'.

Readiness health checks are performed to validate that app instances are ready to serve requests. When readiness health checks fail, the app instance is marked as not ready and removed from the route pool for the app.

Values: "port" "process" "http"
readiness-health-check-http-endpoint string

Endpoint called to determine if the app is ready to serve requests when readiness-health-check-type='http'. Default is '/'.

readiness-health-check-invocation-timeout integer

The timeout in seconds for individual readiness health check requests for HTTP and port health checks. Default is 1 (second).

readiness-health-check-interval integer

The amount of time in seconds between starting individual readiness health check requests for HTTP and port health checks. Default is 30 (seconds).

instances integer

The number of instances to run. Default is 1.

memory string

The memory limit for all instances of the web process. This attribute requires a unit of measurement: B, K, KB, M, MB, G, GB, T, or TB in upper case or lower case.

log-rate-limit-per-second string

The log rate limit for all the instances of the process. This attribute requires a unit of measurement: B, K, KB, M, MB, G, GB, T, or TB in upper case or lower case, or -1 or 0.

timeout integer

Time in seconds at which the health-check will report failure. Default is 60 (seconds).

Route object
route string required

The route URI. Example: host.domain.com.

protocol enum

Protocol to use for this route.

Values: "http2" "http1" "tcp"
ServiceObject object
name string required

The name of the service instance to be bound to.

parameters object

A map of arbitrary key/value pairs to send to the service broker during binding.

binding_name string

The name of the service binding to be created

ServiceParameters object

A map of arbitrary key/value pairs to send to the service broker during binding.

Sidecar object
name string required

The identifier for the sidecars to be configured

process_types string[] required

List of processes to associate sidecar with

command string required

The command used to start the sidecar

memory string

Memory that the sidecar will be allocated

ServiceElement ServiceObject | string