You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 2, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: docs/v3/source/includes/concepts/_lifecycles.md.erb
+35-4Lines changed: 35 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ pull a Docker image from a registry to run an app.
7
7
8
8
Name | Type | Description
9
9
---- | ---- | -----------
10
-
**type** | _string_ | Type of the lifecycle; valid values are `buildpack`, `docker`
10
+
**type** | _string_ | Type of the lifecycle; valid values are `buildpack`, `docker`, `kpack`
11
11
**data** | _object_ | Data that is used during staging and running for a lifecycle
12
12
13
13
### Buildpack lifecycle
@@ -26,16 +26,18 @@ Example Buildpack Lifecycle
26
26
}
27
27
```
28
28
29
-
This is the default lifecycle for Cloud Foundry. When staging an app with this lifecycle, the app source code will be
29
+
This is the default lifecycle for Cloud Foundry for VMs. When staging an app with this lifecycle, the app source code will be
30
30
compiled using a buildpack, resulting in a droplet. When running an app with this lifecycle, a container running a rootfs
31
31
will be created and the droplet will be expanded inside that container to be executed.
32
32
33
+
**Note**: This lifecycle is not supported on Cloud Foundry for Kubernetes.
34
+
33
35
#### Buildpack lifecycle object
34
36
35
37
Name | Type | Description
36
38
---- | ---- | -----------
37
39
**type** | _string_ | `buildpack`
38
-
**data.buildpacks** | _array of strings_ | A list of the names of buildpacks, URLs from which they may be downloaded, or `null` to auto-detect a suitable buildpack
40
+
**data.buildpacks** | _array of strings_ | A list of the names of buildpacks, URLs from which they may be downloaded, or `null` to auto-detect a suitable buildpack during staging
39
41
**data.stack** | _string_ | The root filesystem to use with the buildpack, for example `cflinuxfs3`
40
42
41
43
### Docker lifecycle
@@ -51,7 +53,7 @@ Example Docker Lifecycle
51
53
}
52
54
```
53
55
54
-
This allows Cloud Foundry to run Docker images. When staging an app with this lifecycle, the Docker registry is queried for
56
+
This allows Cloud Foundry to run pre-built Docker images. When staging an app with this lifecycle, the Docker registry is queried for
55
57
metadata about the image, such as ports and start command. When running an app with this lifecycle, a container is created
56
58
and the Docker image is executed inside of it.
57
59
@@ -62,3 +64,32 @@ Name | Type | Description
62
64
**type** | _string_ | `docker`
63
65
**data** | _object_ | Data is not used by the Docker lifecycle; valid value is `{}`
64
66
67
+
### Kpack lifecycle
68
+
69
+
```
70
+
Example Kpack Lifecycle
71
+
```
72
+
73
+
```json
74
+
{
75
+
"type": "kpack",
76
+
"data": {
77
+
"buildpacks": ["paketo-buildpacks/java"]
78
+
}
79
+
}
80
+
```
81
+
82
+
This is the default lifecycle for Cloud Foundry for Kubernetes. When staging an app with this lifecycle, the app source code will be
83
+
built into an OCI image using a [Cloud Native Buildpack](https://buildpacks.io/) and [kpack](https://github.com/pivotal/kpack).
84
+
This image is published to the app image registry and a `docker` lifecycle droplet is created referring to the image.
85
+
86
+
When running an app with this lifecycle, a container is created and the OCI image is executed inside of it.
87
+
88
+
**Note**: This lifecycle is not supported on Cloud Foundry for VMs.
89
+
90
+
#### Kpack lifecycle object
91
+
92
+
Name | Type | Description
93
+
---- | ---- | -----------
94
+
**type** | _string_ | `kpack`
95
+
**data.buildpacks** | _array of strings_ | An optional list of buildpack names. Specify an empty list to auto-detect a suitable buildpack during staging
0 commit comments