Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/applicat
sleep 1

echo "Deploying application..."
curl -X POST -H "Content-Type: application/json" -d "@${iaas_artifacts_path}/deployment-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/dependency-scaling-groups-app/deploy
curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/dependency-scaling-groups-app/deploy
2 changes: 1 addition & 1 deletion samples/applications/group-cartridges/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
single_group_v3
group-cartridges-app
===============

Application folder structure
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"networkPartition":[
{
"id":"network-partition-1",
"activeByDefault":"true"
},
{
"id":"network-partition-2",
"activeByDefault":"false"
}
]
}
79 changes: 44 additions & 35 deletions samples/applications/group-cartridges/artifacts/application.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,52 @@
{
"applicationId": "single_group_v3",
"alias": "single_group_v3",
"applicationId": "group-cartridges-app",
"alias": "my-group-cartridges-app",
"components": {
"cartridges":[
{
"type": "tomcat1",
"cartridgeMin": 1,
"cartridgeMax": 2,
"subscribableInfo": {
"alias": "mytomcat",
"autoscalingPolicy": "autoscaling-policy-1",
"artifactRepository":{
"privateRepo":false,
"repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git",
"repoUsername":"",
"repoPassword":""
}
}
},
{
"type":"mysql",
"cartridgeMin": 1,
"cartridgeMax": 10,
"subscribableInfo":{
"alias":"mymysql",
"autoscalingPolicy":"autoscaling-policy-1",
"artifactRepository":{
"privateRepo":false,
"repoUrl":"",
"repoUsername":"",
"repoPassword":""
}
"groups": [
{
"name": "tomcat1-mysql-group",
"alias": "my-tomcat1-mysql-group",
"groupMinInstances": 1,
"groupMaxInstances": 2,
"deploymentPolicy": "deployment-policy-1",
"cartridges": [
{
"type": "tomcat1",
"cartridgeMin": 1,
"cartridgeMax": 2,
"subscribableInfo": {
"alias": "my-tomcat1",
"autoscalingPolicy": "autoscaling-policy-1",
"artifactRepository": {
"privateRepo": false,
"repoUrl": "https://github.com/imesh/stratos-tomcat1-applications.git",
"repoUsername": "",
"repoPassword": ""
}
}
},
{
"type": "mysql",
"cartridgeMin": 1,
"cartridgeMax": 10,
"subscribableInfo": {
"alias": "my-mysql",
"autoscalingPolicy": "autoscaling-policy-1",
"artifactRepository": {
"privateRepo": false,
"repoUrl": "",
"repoUsername": "",
"repoPassword": ""
}
}

}
]
}

}
],
],
"dependencies": {
"startupOrders": [
"cartridge.mysql,cartridge.tomcat1"
"cartridge.my-tomcat1,cartridge.my-mysql"
],
"terminationBehaviour": "terminate-all"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "deployment-policy-2",
"id": "deployment-policy-1",
"networkPartition": [
{
"id": "network-partition-1",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading