Skip to content

Commit d74f1c1

Browse files
committed
change amazon ami
update refs on submodule tomcat
1 parent 640621b commit d74f1c1

3 files changed

Lines changed: 22 additions & 11 deletions

File tree

meta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ kit:
99
- name: "Load Balancer"
1010
manifest: https://raw.github.com/qubell-bazaar/component-haproxy/1.0-34p/component-haproxy.yml
1111
- name: "Application Server"
12-
manifest: https://raw.github.com/qubell-bazaar/component-tomcat-dev/1.0-34p/component-tomcat-dev.yml
12+
manifest: https://raw.github.com/qubell-bazaar/component-tomcat-dev/1.2-38p/component-tomcat-dev.yml
1313
provider:
1414
name: "Qubell"
1515
link: http://qubell.com

starter-java-web.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
application:
22
configuration:
3+
input.operating-system: {image: "us-east-1/ami-5ccae734", identity: ec2-user}
34
input.lb-bucket: http://roundrobin:80
45
input.app-fork: qubell
56
input.app-branch: HEAD #red, master
@@ -16,6 +17,7 @@ application:
1617
app-branch: "bind(main.workflow#input.app-branch)"
1718
lb-bucket: "bind(main.workflow#input.lb-bucket)"
1819
app-quantity: "bind(AppServer#input.quantity)"
20+
operating-system: "bind(Database#input.operating-system, AppServer#input.operating-system, LoadBalancer#input.operating-system)"
1921
app-meta:
2022
application-pic: "bind(metadata#output.application-pic)"
2123
endpoints:
@@ -44,8 +46,6 @@ application:
4446
type: workflow.Instance
4547
interfaces:
4648
input:
47-
scm-provider:
48-
type: configuration(string)
4949
app-fork:
5050
type: configuration(string)
5151
name: Git fork
@@ -79,7 +79,7 @@ application:
7979
type: send-command(object connection, list<string> sql-url)
8080
tomcat:
8181
build-app:
82-
type: send-command(string scm-provider, string git-uri, string app-branch => list<string> wars)
82+
type: send-command(string git-uri, string app-branch => list<string> wars)
8383
deploy-libs:
8484
type: send-command(list<string> lib-uri)
8585
deploy-war:
@@ -109,7 +109,6 @@ application:
109109
input.db-user: petclinic #const
110110
input.db-password: petclinic #const
111111
input.privileges: ["all"] #const
112-
input.scm-provider: git #const
113112
input.lib-uri: ["http://repo1.maven.org/maven2/org/apache/tomcat/dbcp/6.0.26/dbcp-6.0.26.jar", "http://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar", "https://dl.dropboxusercontent.com/u/250836/ojdbc6.jar"]
114113

115114
configuration.triggers:
@@ -149,7 +148,6 @@ application:
149148
precedingPhases: [ get-env-props ]
150149
parameters:
151150
commandCallTimeout: 10 minutes
152-
scm-provider: "{$.scm-provider}"
153151
git-uri: "git://github.com/{$.app-fork}/starter-java-web.git"
154152
app-branch: "{$.app-branch}"
155153
output:
@@ -229,7 +227,6 @@ application:
229227
precedingPhases: [ get-env-props ]
230228
parameters:
231229
commandCallTimeout: 10 minutes
232-
scm-provider: "{$.scm-provider}"
233230
git-uri: "git://github.com/{$.app-fork}/starter-java-web.git"
234231
app-branch: "{$.app-branch}"
235232
output:
@@ -301,7 +298,6 @@ application:
301298
precedingPhases: [ get-env-props ]
302299
parameters:
303300
commandCallTimeout: 10 minutes
304-
scm-provider: "{$.scm-provider}"
305301
git-uri: "git://github.com/{$.app-fork}/starter-java-web.git"
306302
app-branch: "{$.app-branch}"
307303
output:
@@ -360,6 +356,13 @@ application:
360356
__locator.application-id: "Database"
361357
interfaces:
362358
input:
359+
operating-system:
360+
type: configuration(map<string,object>)
361+
suggestions: # Create dropdown menu in advanced launch
362+
"centos": {image: "us-east-1/ami-bf5021d6", identity: root}
363+
"amazon": {image: "us-east-1/ami-5ccae734", identity: ec2-user}
364+
"ubuntu1204": {image: "us-east-1/ami-967edcff", identity: ubuntu}
365+
"ubuntu1004": {image: "us-east-1/ami-9f3906f6", identity: ubuntu}
363366
db-port:
364367
type: configuration(int)
365368
name: Database port
@@ -393,7 +396,7 @@ application:
393396
type: configuration(map<string,object>)
394397
suggestions:
395398
"centos": {image: "us-east-1/ami-bf5021d6", identity: root}
396-
"amazon": {image: "us-east-1/ami-1ba18d72", identity: ec2-user}
399+
"amazon": {image: "us-east-1/ami-5ccae734", identity: ec2-user}
397400
"ubuntu1204": {image: "us-east-1/ami-967edcff", identity: ubuntu}
398401
"ubuntu1004": {image: "us-east-1/ami-9f3906f6", identity: ubuntu}
399402
instance-size:
@@ -404,7 +407,7 @@ application:
404407
name: No. application hosts
405408
tomcat:
406409
build-app:
407-
type: receive-command(string scm-provider, string git-uri, string app-branch => list<string> wars)
410+
type: receive-command(string git-uri, string app-branch => list<string> wars)
408411
name: Maven build
409412
deploy-libs:
410413
type: receive-command(list<string> lib-uri)
@@ -430,6 +433,14 @@ application:
430433
configuration:
431434
__locator.application-id: "Load Balancer"
432435
interfaces:
436+
input:
437+
operating-system:
438+
type: configuration(map<string,object>)
439+
suggestions: # Create dropdown menu in advanced launch
440+
"centos": {image: "us-east-1/ami-bf5021d6", identity: root}
441+
"amazon": {image: "us-east-1/ami-5ccae734", identity: ec2-user}
442+
"ubuntu1204": {image: "us-east-1/ami-967edcff", identity: ubuntu}
443+
"ubuntu1004": {image: "us-east-1/ami-9f3906f6", identity: ubuntu}
433444
haproxy:
434445
add-servers:
435446
type: receive-command(list<string> app-hosts, int app-port, string lb-bucket => string entry-url)

test/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def eventually_assert():
7676
})
7777
class PetClinicComponentTestCase(BaseComponentTestCase):
7878
name = "starter-java-web"
79-
meta = "https://raw.githubusercontent.com/qubell-bazaar/starter-java-web/master/meta.yml"
79+
meta = os.path.realpath(os.path.join(os.path.dirname(__file__), '../meta.yml'))
8080
db_name = "petclinic"
8181
apps = [{
8282
"name": name,

0 commit comments

Comments
 (0)