forked from jelastic-jps/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.jps
58 lines (54 loc) · 1.36 KB
/
manifest.jps
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
---
type: install
version: 1.3
id: spring-boot-cluster
baseUrl: https://raw.githubusercontent.com/jelastic-jps/spring-boot/master
logo: /images/spring-boot-logo.png
description: /text/description.md
name: Auto Scalable Spring Boot Cluster
categories:
- apps/clusters
settings:
fields:
- type: spinner
name: nodes
caption: Nodes in Cluster
min: 1
max: 10
default: 2
- name: state
type: radio-fieldset
values:
clean: Clean Cluster
deploy: Deploy JAR
default: clean
showIf:
deploy:
name: jar
type: string
caption: JAR Url
default: https://raw.githubusercontent.com/jelastic-jps/spring-boot/master/jar/spring-boot-demo.jar
required: true
vtype: url
nodes:
- nodeType: nginx
cloudlets: 8
nodeGroup: bl
- nodeType: springboot
cloudlets: 8
nodeGroup: cp
count: ${settings.nodes}
skipNodeEmails: true
onBeforeInit: return {result:0, ssl:!!jelastic.billing.account.GetQuotas('environment.jelasticssl.enabled').array[0].value}
onInstall:
- if ('${settings.state}' == 'deploy'):
deploy:
archive: ${settings.jar}
name: jar
context: ROOT
- script: /scripts/autoscaling-triggers.js
params:
nodeGroup: cp
upLimit: 10
downLimit: ${settings.nodes}
success: /text/success.md