Setup in Cloud Foundry
Deploy Eclipse Dirigible in SAP BTP1, Cloud Foundry environment.
Prerequisites
- Install Cloud Foundry Command Line Interface.
- Access to SAP BTP account (the Trial landscape can be accessed here).
Steps
-
Set the SAP BTP Cloud Foundry API host:
cf api <cloud-foundry-api-host>
-
Log in to the SAP BTP, Cloud Foundry environment with:
cf login
-
Create XSUAA service instance:
-
Copy and paste the following content into
xs-security.json
:{ "xsappname": "<applicationName>-xsuaa", "tenant-mode": "shared", "scopes": [ { "name": "$XSAPPNAME.Developer", "description": "Developer scope" }, { "name": "$XSAPPNAME.Operator", "description": "Operator scope" } ], "role-templates": [ { "name": "Developer", "description": "Developer related roles", "scope-references": [ "$XSAPPNAME.Developer" ] }, { "name": "Operator", "description": "Operator related roles", "scope-references": [ "$XSAPPNAME.Operator" ] } ], "role-collections": [ { "name": "Dirigible Developer", "description": "Dirigible Developer", "role-template-references": [ "$XSAPPNAME.Developer" ] }, { "name": "Dirigible Operator", "description": "Dirigible Operator", "role-template-references": [ "$XSAPPNAME.Operator" ] } ] }
Note
Replace the
<applicationName>
placeholder with your application name, e.g.dirigible
. -
Create a XSUAA service instance:
cf create-service xsuaa application <applicationName>-xsuaa -c xs-security.json
Note
Use the same
<applicationName>
as in the previous step.
-
-
Deploy Eclipse Dirigible:
cf push dirigible \ --docker-image=dirigiblelabs/dirigible-sap-cf:latest \ -m 2G -k 2G
Eclipse Dirigible versions
Instead of using the
latest
tag (version), for production and development use cases it is recomended to use a stable release version:-
Bind the XSUAA service instance to the Eclipse Dirigible deployment:
cf bind-service dirigible <applicationName>-xsuaa
Note
Replace the
<applicationName>
placeholder with the application name used in the previous steps. -
Restart the
dirigible
deployment:cf restart dirigible
- Download the
sap-cf-all
binaries from the downloads site: download.dirigible.io - Unzip the downloaded archieve to extract the
ROOT.war
file. -
Create
manifest.yaml
file in the same directory where theROOT.war
is located:applications: - name: dirigible host: dirigible-<org-name> memory: 2G buildpack: sap_java_buildpack path: ROOT.war env: JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']" JBP_CONFIG_SAP_MACHINE_JRE: 'jre: { version: 11.+ }' services: - <applicationName>-xsuaa
Note
- Replace the
<org-name>
placeholder with your subaccount's Subdomain value. - Replace the
<applicationName>
placeholder with the application name used in the previous steps.
- Replace the
-
Deploy with:
cf push
-
-
Assign the
Developer
andOperator
roles. -
Log in.
Additional Materials
Step-by-step tutorial can be found here.
-
SAP Cloud Platform is called SAP Business Technology Platform (SAP BTP) as of 2021. ↩