Skip to content

Commit 1c961aa

Browse files
Include example manifest for Cloud Foundry deployment
Added an example manifest for deploying a Java app on Cloud Foundry.
1 parent 79de3bb commit 1c961aa

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

content/en/docs/deployment/on-premises-design/cloud-foundry/cloud-foundry-deploy-pad.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,27 @@ To deploy your app to Cloud Foundry, perform the following steps:
4646
services:
4747
env:
4848
```
49-
49+
50+
It should be a manifest like the following example
51+
52+
``` yaml
53+
applications:
54+
- name: mx-java-app
55+
path: <path-to-zip>
56+
memory: 1G
57+
buildpacks:
58+
- java_buildpack
59+
services:
60+
- <service instance_id to be bind>
61+
- <service instance_id to be bind>
62+
env:
63+
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 21.+}}'
64+
JBP_LOG_LEVEL: INFO
65+
JAVA_OPTS: >
66+
-Xmx512m
67+
-Xms512m
68+
-XX:MaxDirectMemorySize=20M
69+
-XX:MaxMetaspaceSize=128M
70+
```
5071
5. Run the `cf push` command.
5172
6. Verify that the Mendix app has started successfully.

0 commit comments

Comments
 (0)