refining the application samples hierarchy
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/aaa8a0f4 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/aaa8a0f4 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/aaa8a0f4 Branch: refs/heads/master Commit: aaa8a0f48c63d28c86d66da9b21ae689e48ad1ce Parents: e97d336 Author: Isuru Haththotuwa <[email protected]> Authored: Thu Apr 30 11:54:44 2015 +0530 Committer: Isuru Haththotuwa <[email protected]> Committed: Thu Apr 30 11:54:44 2015 +0530 ---------------------------------------------------------------------- .../tests/SampleApplicationsTest.java | 2 +- .../applications/app-bursting-pattern/README.md | 8 - .../artifacts/application-signup.json | 18 -- .../artifacts/application.json | 25 --- .../artifacts/domain-mappings.json | 9 - .../scripts/common/deploy.sh | 51 ----- .../scripts/common/undeploy.sh | 33 --- .../app-bursting-pattern/scripts/ec2/deploy.sh | 9 - .../scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 16 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../app-bursting-pattern/scripts/mock/deploy.sh | 9 - .../scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - .../applications/complex-app-with-lb/README.md | 13 -- .../artifacts/application.json | 141 ------------- .../scripts/common/deploy.sh | 67 ------ .../scripts/common/undeploy.sh | 31 --- .../complex-app-with-lb/scripts/ec2/deploy.sh | 9 - .../complex-app-with-lb/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../complex-app-with-lb/scripts/mock/deploy.sh | 9 - .../scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/complex-app/README.md | 13 -- .../complex-app/artifacts/application.json | 131 ------------ .../artifacts/autoscaling-policy.json | 14 -- .../artifacts/deployment-policy.json | 15 -- .../complex-app/scripts/common/deploy.sh | 64 ------ .../complex-app/scripts/common/undeploy.sh | 36 ---- .../complex-app/scripts/ec2/deploy.sh | 9 - .../complex-app/scripts/ec2/undeploy.sh | 7 - .../complex-app/scripts/kubernetes/deploy.sh | 15 -- .../complex-app/scripts/kubernetes/undeploy.sh | 13 -- .../complex-app/scripts/mock/deploy.sh | 9 - .../complex-app/scripts/mock/undeploy.sh | 7 - .../complex-app/scripts/openstack/deploy.sh | 9 - .../complex-app/scripts/openstack/undeploy.sh | 7 - .../README.md | 10 + .../artifacts/application.json | 121 +++++++++++ .../scripts/common/add-domain-mappings.sh | 9 + .../scripts/common/add-network-partition.sh | 9 + .../scripts/common/deploy.sh | 65 ++++++ .../scripts/common/get-application-runtime.sh | 10 + .../scripts/common/list-domain-mappings.sh | 4 + .../scripts/common/list-network-partition.sh | 4 + .../scripts/common/undeploy.sh | 37 ++++ .../scripts/common/update-deployment-policy.sh | 12 ++ .../scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../complex/tomcat-single-signon/README.md | 30 +++ .../artifacts/application.json | 38 ++++ .../scripts/common/deploy.sh | 54 +++++ .../scripts/common/undeploy.sh | 27 +++ .../tomcat-single-signon/scripts/ec2/deploy.sh | 9 + .../scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 16 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../tomcat-single-signon/scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../complex/wordpress-app/README.md | 20 ++ .../wordpress-app/artifacts/application.json | 41 ++++ .../wordpress-app/scripts/common/deploy.sh | 60 ++++++ .../wordpress-app/scripts/common/undeploy.sh | 35 ++++ .../complex/wordpress-app/scripts/ec2/deploy.sh | 9 + .../wordpress-app/scripts/ec2/undeploy.sh | 7 + .../wordpress-app/scripts/kubernetes/deploy.sh | 16 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../wordpress-app/scripts/mock/deploy.sh | 9 + .../wordpress-app/scripts/mock/undeploy.sh | 7 + .../wordpress-app/scripts/openstack/deploy.sh | 9 + .../wordpress-app/scripts/openstack/undeploy.sh | 7 + .../sample-cartridges/README.md | 13 -- .../artifacts/application.json | 46 ----- .../sample-cartridges/scripts/common/deploy.sh | 53 ----- .../scripts/common/undeploy.sh | 21 -- .../sample-cartridges/scripts/ec2/deploy.sh | 9 - .../sample-cartridges/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../sample-cartridges/scripts/mock/deploy.sh | 9 - .../sample-cartridges/scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - .../dependent-scaling/sample-groups/README.md | 13 -- .../sample-groups/artifacts/application.json | 74 ------- .../sample-groups/scripts/common/deploy.sh | 58 ------ .../sample-groups/scripts/common/undeploy.sh | 25 --- .../sample-groups/scripts/ec2/deploy.sh | 9 - .../sample-groups/scripts/ec2/undeploy.sh | 7 - .../sample-groups/scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../sample-groups/scripts/mock/deploy.sh | 9 - .../sample-groups/scripts/mock/undeploy.sh | 7 - .../sample-groups/scripts/openstack/deploy.sh | 9 - .../sample-groups/scripts/openstack/undeploy.sh | 7 - .../README.md | 23 --- .../artifacts/application.json | 141 ------------- .../scripts/common/deploy.sh | 64 ------ .../scripts/common/undeploy.sh | 35 ---- .../scripts/ec2/deploy.sh | 9 - .../scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 16 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../scripts/mock/deploy.sh | 9 - .../scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/group-cartridges/README.md | 14 -- .../group-cartridges/artifacts/application.json | 49 ----- .../group-cartridges/scripts/common/deploy.sh | 63 ------ .../group-cartridges/scripts/common/undeploy.sh | 38 ---- .../group-cartridges/scripts/ec2/deploy.sh | 9 - .../group-cartridges/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../group-cartridges/scripts/mock/deploy.sh | 9 - .../group-cartridges/scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/group-scaling-v1/README.md | 18 -- .../group-scaling-v1/artifacts/application.json | 48 ----- .../group-scaling-v1/scripts/common/deploy.sh | 58 ------ .../group-scaling-v1/scripts/common/undeploy.sh | 29 --- .../group-scaling-v1/scripts/ec2/deploy.sh | 9 - .../group-scaling-v1/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../group-scaling-v1/scripts/mock/deploy.sh | 9 - .../group-scaling-v1/scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/group-scaling/README.md | 18 -- .../group-scaling/artifacts/application.json | 97 --------- .../group-scaling/scripts/common/deploy.sh | 72 ------- .../group-scaling/scripts/common/undeploy.sh | 33 --- .../group-scaling/scripts/ec2/deploy.sh | 9 - .../group-scaling/scripts/ec2/undeploy.sh | 7 - .../group-scaling/scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../group-scaling/scripts/mock/deploy.sh | 9 - .../group-scaling/scripts/mock/undeploy.sh | 7 - .../group-scaling/scripts/openstack/deploy.sh | 9 - .../group-scaling/scripts/openstack/undeploy.sh | 7 - samples/applications/more-complex-app/README.md | 14 -- .../more-complex-app/artifacts/application.json | 202 ------------------- .../more-complex-app/scripts/common/deploy.sh | 64 ------ .../more-complex-app/scripts/common/undeploy.sh | 31 --- .../more-complex-app/scripts/ec2/deploy.sh | 9 - .../more-complex-app/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../more-complex-app/scripts/mock/deploy.sh | 9 - .../more-complex-app/scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - .../n-level-nesting/artifacts/application.json | 184 ----------------- .../n-level-nesting/scripts/common/deploy.sh | 67 ------ .../n-level-nesting/scripts/common/undeploy.sh | 36 ---- .../n-level-nesting/scripts/ec2/deploy.sh | 9 - .../n-level-nesting/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 16 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../n-level-nesting/scripts/mock/deploy.sh | 9 - .../n-level-nesting/scripts/mock/undeploy.sh | 7 - .../n-level-nesting/scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/nested-group-v2/README.md | 30 --- .../nested-group-v2/artifacts/application.json | 97 --------- .../nested-group-v2/images/nested-group-app.png | Bin 22765 -> 0 bytes .../nested-group-v2/scripts/common/deploy.sh | 66 ------ .../nested-group-v2/scripts/common/undeploy.sh | 29 --- .../nested-group-v2/scripts/ec2/deploy.sh | 9 - .../nested-group-v2/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../nested-group-v2/scripts/mock/deploy.sh | 9 - .../nested-group-v2/scripts/mock/undeploy.sh | 7 - .../nested-group-v2/scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/nested-group/README.md | 14 -- .../nested-group/artifacts/application.json | 82 -------- .../nested-group/scripts/common/deploy.sh | 62 ------ .../nested-group/scripts/common/undeploy.sh | 29 --- .../scripts/common/update-deployment-policy.sh | 12 -- .../scripts/common/update-network-partition.sh | 11 - .../nested-group/scripts/ec2/deploy.sh | 9 - .../nested-group/scripts/ec2/undeploy.sh | 7 - .../nested-group/scripts/kubernetes/deploy.sh | 15 -- .../nested-group/scripts/kubernetes/undeploy.sh | 13 -- .../nested-group/scripts/mock/deploy.sh | 9 - .../nested-group/scripts/mock/undeploy.sh | 7 - .../scripts/mock/update-network-partition.sh | 6 - .../nested-group/scripts/openstack/deploy.sh | 9 - .../nested-group/scripts/openstack/undeploy.sh | 7 - .../openstack/update-network-partition.sh | 11 - .../nested/complex-app-with-lb/README.md | 13 ++ .../artifacts/application.json | 141 +++++++++++++ .../scripts/common/deploy.sh | 67 ++++++ .../scripts/common/undeploy.sh | 31 +++ .../complex-app-with-lb/scripts/ec2/deploy.sh | 9 + .../complex-app-with-lb/scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 15 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../complex-app-with-lb/scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../README.md | 23 +++ .../artifacts/application.json | 141 +++++++++++++ .../scripts/common/deploy.sh | 64 ++++++ .../scripts/common/undeploy.sh | 35 ++++ .../scripts/ec2/deploy.sh | 9 + .../scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 16 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../artifacts/application.json | 184 +++++++++++++++++ .../scripts/common/deploy.sh | 67 ++++++ .../scripts/common/undeploy.sh | 36 ++++ .../scripts/ec2/deploy.sh | 9 + .../scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 16 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../single-level-nested-group-app/README.md | 14 ++ .../artifacts/application.json | 82 ++++++++ .../scripts/common/deploy.sh | 62 ++++++ .../scripts/common/undeploy.sh | 29 +++ .../scripts/common/update-deployment-policy.sh | 12 ++ .../scripts/common/update-network-partition.sh | 11 + .../scripts/ec2/deploy.sh | 9 + .../scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 15 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../scripts/mock/update-network-partition.sh | 6 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../openstack/update-network-partition.sh | 11 + .../single-level-nested-groups-app/README.md | 13 ++ .../artifacts/application.json | 131 ++++++++++++ .../artifacts/autoscaling-policy.json | 14 ++ .../artifacts/deployment-policy.json | 15 ++ .../scripts/common/deploy.sh | 64 ++++++ .../scripts/common/undeploy.sh | 36 ++++ .../scripts/ec2/deploy.sh | 9 + .../scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 15 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../README.md | 10 - .../artifacts/application.json | 121 ----------- .../scripts/common/add-domain-mappings.sh | 9 - .../scripts/common/add-network-partition.sh | 9 - .../scripts/common/deploy.sh | 65 ------ .../scripts/common/get-application-runtime.sh | 10 - .../scripts/common/list-domain-mappings.sh | 4 - .../scripts/common/list-network-partition.sh | 4 - .../scripts/common/undeploy.sh | 37 ---- .../scripts/common/update-deployment-policy.sh | 12 -- .../scripts/mock/deploy.sh | 9 - .../scripts/mock/undeploy.sh | 7 - .../scaling/app-bursting-pattern/README.md | 8 + .../artifacts/application-signup.json | 18 ++ .../artifacts/application.json | 25 +++ .../artifacts/domain-mappings.json | 9 + .../scripts/common/deploy.sh | 51 +++++ .../scripts/common/undeploy.sh | 33 +++ .../app-bursting-pattern/scripts/ec2/deploy.sh | 9 + .../scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 16 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../app-bursting-pattern/scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../sample-cartridges/README.md | 13 ++ .../artifacts/application.json | 46 +++++ .../sample-cartridges/scripts/common/deploy.sh | 53 +++++ .../scripts/common/undeploy.sh | 21 ++ .../sample-cartridges/scripts/ec2/deploy.sh | 9 + .../sample-cartridges/scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 15 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../sample-cartridges/scripts/mock/deploy.sh | 9 + .../sample-cartridges/scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../dependent-scaling/sample-groups/README.md | 13 ++ .../sample-groups/artifacts/application.json | 74 +++++++ .../sample-groups/scripts/common/deploy.sh | 58 ++++++ .../sample-groups/scripts/common/undeploy.sh | 25 +++ .../sample-groups/scripts/ec2/deploy.sh | 9 + .../sample-groups/scripts/ec2/undeploy.sh | 7 + .../sample-groups/scripts/kubernetes/deploy.sh | 15 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../sample-groups/scripts/mock/deploy.sh | 9 + .../sample-groups/scripts/mock/undeploy.sh | 7 + .../sample-groups/scripts/openstack/deploy.sh | 9 + .../sample-groups/scripts/openstack/undeploy.sh | 7 + .../group-scaling/group-scaling-app/README.md | 18 ++ .../artifacts/application.json | 97 +++++++++ .../group-scaling-app/scripts/common/deploy.sh | 72 +++++++ .../scripts/common/undeploy.sh | 33 +++ .../group-scaling-app/scripts/ec2/deploy.sh | 9 + .../group-scaling-app/scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 15 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../group-scaling-app/scripts/mock/deploy.sh | 9 + .../group-scaling-app/scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../group-scaling/group-scaling-v1/README.md | 18 ++ .../group-scaling-v1/artifacts/application.json | 48 +++++ .../group-scaling-v1/scripts/common/deploy.sh | 58 ++++++ .../group-scaling-v1/scripts/common/undeploy.sh | 29 +++ .../group-scaling-v1/scripts/ec2/deploy.sh | 9 + .../group-scaling-v1/scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 15 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../group-scaling-v1/scripts/mock/deploy.sh | 9 + .../group-scaling-v1/scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../single-group-group-scaling/README.md | 13 ++ .../artifacts/application.json | 33 +++ .../scripts/common/deploy.sh | 55 +++++ .../scripts/common/undeploy.sh | 28 +++ .../scripts/ec2/deploy.sh | 9 + .../scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 15 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../simple/single-cartridge-app/README.md | 8 + .../artifacts/application-signup.json | 18 ++ .../artifacts/application.json | 25 +++ .../artifacts/domain-mappings.json | 9 + .../scripts/common/add-domain-mappings.sh | 9 + .../scripts/common/add-network-partition.sh | 9 + .../scripts/common/deploy.sh | 49 +++++ .../scripts/common/get-application-runtime.sh | 10 + .../scripts/common/list-domain-mappings.sh | 4 + .../scripts/common/list-network-partition.sh | 4 + .../scripts/common/undeploy.sh | 31 +++ .../scripts/common/update-deployment-policy.sh | 12 ++ .../single-cartridge-app/scripts/ec2/deploy.sh | 9 + .../scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 16 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../single-cartridge-app/scripts/mock/deploy.sh | 9 + .../scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + .../simple/single-group-app/README.md | 15 ++ .../single-group-app/artifacts/application.json | 72 +++++++ .../single-group-app/scripts/common/deploy.sh | 62 ++++++ .../single-group-app/scripts/common/undeploy.sh | 37 ++++ .../single-group-app/scripts/ec2/deploy.sh | 9 + .../single-group-app/scripts/ec2/undeploy.sh | 7 + .../scripts/kubernetes/deploy.sh | 16 ++ .../scripts/kubernetes/undeploy.sh | 13 ++ .../single-group-app/scripts/mock/deploy.sh | 9 + .../single-group-app/scripts/mock/undeploy.sh | 7 + .../scripts/openstack/deploy.sh | 9 + .../scripts/openstack/undeploy.sh | 7 + samples/applications/single-cartridge/README.md | 8 - .../artifacts/application-signup.json | 18 -- .../single-cartridge/artifacts/application.json | 25 --- .../artifacts/domain-mappings.json | 9 - .../scripts/common/add-domain-mappings.sh | 9 - .../scripts/common/add-network-partition.sh | 9 - .../single-cartridge/scripts/common/deploy.sh | 49 ----- .../scripts/common/get-application-runtime.sh | 10 - .../scripts/common/list-domain-mappings.sh | 4 - .../scripts/common/list-network-partition.sh | 4 - .../single-cartridge/scripts/common/undeploy.sh | 31 --- .../scripts/common/update-deployment-policy.sh | 12 -- .../single-cartridge/scripts/ec2/deploy.sh | 9 - .../single-cartridge/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 16 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../single-cartridge/scripts/mock/deploy.sh | 9 - .../single-cartridge/scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - .../single-group-cartridge/README.md | 15 -- .../artifacts/application.json | 72 ------- .../scripts/common/deploy.sh | 62 ------ .../scripts/common/undeploy.sh | 37 ---- .../scripts/ec2/deploy.sh | 9 - .../scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 16 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../scripts/mock/deploy.sh | 9 - .../scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - .../single-group-group-scaling/README.md | 13 -- .../artifacts/application.json | 33 --- .../scripts/common/deploy.sh | 55 ----- .../scripts/common/undeploy.sh | 28 --- .../scripts/ec2/deploy.sh | 9 - .../scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../scripts/mock/deploy.sh | 9 - .../scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/single-group-v1/README.md | 15 -- .../artifacts/application-up.json | 38 ---- .../single-group-v1/artifacts/application.json | 57 ------ .../single-group-v1/scripts/common/deploy.sh | 57 ------ .../single-group-v1/scripts/common/undeploy.sh | 35 ---- .../single-group-v1/scripts/ec2/deploy.sh | 9 - .../single-group-v1/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../single-group-v1/scripts/mock/deploy.sh | 9 - .../single-group-v1/scripts/mock/undeploy.sh | 7 - .../single-group-v1/scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/single-group-v2/README.md | 14 -- .../single-group-v2/artifacts/application.json | 72 ------- .../single-group-v2/scripts/common/deploy.sh | 59 ------ .../single-group-v2/scripts/common/undeploy.sh | 31 --- .../single-group-v2/scripts/ec2/deploy.sh | 9 - .../single-group-v2/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../single-group-v2/scripts/mock/deploy.sh | 9 - .../single-group-v2/scripts/mock/undeploy.sh | 7 - .../single-group-v2/scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/single-group-v3/README.md | 14 -- .../single-group-v3/artifacts/application.json | 34 ---- .../single-group-v3/scripts/common/deploy.sh | 53 ----- .../single-group-v3/scripts/common/undeploy.sh | 28 --- .../single-group-v3/scripts/ec2/deploy.sh | 9 - .../single-group-v3/scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 15 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../single-group-v3/scripts/mock/deploy.sh | 9 - .../single-group-v3/scripts/mock/undeploy.sh | 7 - .../single-group-v3/scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - .../applications/tomcat-single-signon/README.md | 30 --- .../artifacts/application.json | 38 ---- .../scripts/common/deploy.sh | 54 ----- .../scripts/common/undeploy.sh | 27 --- .../tomcat-single-signon/scripts/ec2/deploy.sh | 9 - .../scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 16 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../tomcat-single-signon/scripts/mock/deploy.sh | 9 - .../scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/tomcat/README.md | 18 -- .../tomcat/artifacts/application.json | 25 --- .../tomcat/scripts/common/deploy.sh | 53 ----- .../tomcat/scripts/common/undeploy.sh | 25 --- .../applications/tomcat/scripts/ec2/deploy.sh | 9 - .../applications/tomcat/scripts/ec2/undeploy.sh | 7 - .../tomcat/scripts/kubernetes/deploy.sh | 16 -- .../tomcat/scripts/kubernetes/undeploy.sh | 13 -- .../applications/tomcat/scripts/mock/deploy.sh | 9 - .../tomcat/scripts/mock/undeploy.sh | 7 - .../tomcat/scripts/openstack/deploy.sh | 9 - .../tomcat/scripts/openstack/undeploy.sh | 7 - .../wordpress-extended-v1/README.md | 22 -- .../artifacts/application.json | 62 ------ .../scripts/common/deploy.sh | 63 ------ .../scripts/common/undeploy.sh | 36 ---- .../wordpress-extended-v1/scripts/ec2/deploy.sh | 9 - .../scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 16 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../scripts/mock/deploy.sh | 9 - .../scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - .../wordpress-extended-v2/README.md | 23 --- .../artifacts/application.json | 63 ------ .../scripts/common/deploy.sh | 63 ------ .../scripts/common/undeploy.sh | 36 ---- .../wordpress-extended-v2/scripts/ec2/deploy.sh | 9 - .../scripts/ec2/undeploy.sh | 7 - .../scripts/kubernetes/deploy.sh | 16 -- .../scripts/kubernetes/undeploy.sh | 13 -- .../scripts/mock/deploy.sh | 9 - .../scripts/mock/undeploy.sh | 7 - .../scripts/openstack/deploy.sh | 9 - .../scripts/openstack/undeploy.sh | 7 - samples/applications/wordpress/README.md | 20 -- .../wordpress/artifacts/application.json | 41 ---- .../wordpress/scripts/common/deploy.sh | 60 ------ .../wordpress/scripts/common/undeploy.sh | 35 ---- .../wordpress/scripts/ec2/deploy.sh | 9 - .../wordpress/scripts/ec2/undeploy.sh | 7 - .../wordpress/scripts/kubernetes/deploy.sh | 16 -- .../wordpress/scripts/kubernetes/undeploy.sh | 13 -- .../wordpress/scripts/mock/deploy.sh | 9 - .../wordpress/scripts/mock/undeploy.sh | 7 - .../wordpress/scripts/openstack/deploy.sh | 9 - .../wordpress/scripts/openstack/undeploy.sh | 7 - 525 files changed, 4375 insertions(+), 6755 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/SampleApplicationsTest.java ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/SampleApplicationsTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/SampleApplicationsTest.java index 08f6b91..47384eb 100644 --- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/SampleApplicationsTest.java +++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/SampleApplicationsTest.java @@ -59,7 +59,7 @@ public class SampleApplicationsTest extends StratosTestServerManager { public void testSingleCartridgeApplication() { try { initializeApplicationEventReceiver(); - runApplicationTest("single-cartridge", "single-cartridge-app"); + runApplicationTest("simple/single-cartridge-app", "single-cartridge-app"); } catch (Exception e) { log.error(e); assertTrue("An error occurred", false); http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/README.md ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/README.md b/samples/applications/app-bursting-pattern/README.md deleted file mode 100644 index 8e18c5c..0000000 --- a/samples/applications/app-bursting-pattern/README.md +++ /dev/null @@ -1,8 +0,0 @@ -app-bursting-pattern -================ -i) In this artifact sample you can find we have listed them as mock and openstack. - -ii) In this sample artifact, it deployed simple tomcat cartridge and start it. - -iii) You can choose the IaaS and navigate to it and simply run the single_cartridge.sh file. It'll deploy the relevant artifacts and start the application. - http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/artifacts/application-signup.json ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/artifacts/application-signup.json b/samples/applications/app-bursting-pattern/artifacts/application-signup.json deleted file mode 100644 index 138648e..0000000 --- a/samples/applications/app-bursting-pattern/artifacts/application-signup.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "artifactRepositories":[ - { - "alias":"php", - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-php-applications.git", - "repoUsername":"", - "repoPassword":"" - }, - { - "alias":"tomcat", - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git", - "repoUsername":"", - "repoPassword":"" - } - ] -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/artifacts/application.json ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/artifacts/application.json b/samples/applications/app-bursting-pattern/artifacts/application.json deleted file mode 100644 index 1cb3e57..0000000 --- a/samples/applications/app-bursting-pattern/artifacts/application.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "applicationId":"app-bursting-pattern-app", - "alias":"app-bursting-pattern-app", - "multiTenant":false, - "components":{ - "cartridges":[ - { - "type":"php", - "cartridgeMin": 1, - "cartridgeMax": 10, - "subscribableInfo":{ - "alias":"my-php", - "autoscalingPolicy":"autoscaling-policy-1", - "deploymentPolicy":"deployment-policy-4", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-php-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } -} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/artifacts/domain-mappings.json ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/artifacts/domain-mappings.json b/samples/applications/app-bursting-pattern/artifacts/domain-mappings.json deleted file mode 100644 index 17ee4f6..0000000 --- a/samples/applications/app-bursting-pattern/artifacts/domain-mappings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "domainMappings": [ - { - "cartridgeAlias":"php1", - "domainName":"abc.com", - "contextPath":"/abc/app" - } - ] -} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/common/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/common/deploy.sh b/samples/applications/app-bursting-pattern/scripts/common/deploy.sh deleted file mode 100755 index df13856..0000000 --- a/samples/applications/app-bursting-pattern/scripts/common/deploy.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash - -iaas=$1 -host_ip="localhost" -host_port=9443 - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` - -artifacts_path=`cd "${script_path}/../../artifacts"; pwd` -iaas_cartridges_path=`cd "${script_path}/../../../../cartridges/${iaas}"; pwd` -cartridges_groups_path=`cd "${script_path}/../../../../cartridges-groups"; pwd` -autoscaling_policies_path=`cd "${script_path}/../../../../autoscaling-policies"; pwd` -network_partitions_path=`cd "${script_path}/../../../../network-partitions/${iaas}"; pwd` -deployment_policies_path=`cd "${script_path}/../../../../deployment-policies"; pwd` -application_policies_path=`cd "${script_path}/../../../../application-policies"; pwd` - -set -e - -if [[ -z "${iaas}" ]]; then - echo "Usage: deploy.sh [iaas]" - exit -fi - -echo ${autoscaling_policies_path}/autoscaling-policy-1.json -echo "Adding autoscale policy..." -curl -X POST -H "Content-Type: application/json" -d "@${autoscaling_policies_path}/autoscaling-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/autoscalingPolicies - -echo "Adding network partitions..." -curl -X POST -H "Content-Type: application/json" -d "@${network_partitions_path}/network-partition-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions -curl -X POST -H "Content-Type: application/json" -d "@${network_partitions_path}/network-partition-2.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions -curl -X POST -H "Content-Type: application/json" -d "@${network_partitions_path}/network-partition-3.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions -curl -X POST -H "Content-Type: application/json" -d "@${network_partitions_path}/network-partition-4.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions -echo "Adding deployment policy..." -curl -X POST -H "Content-Type: application/json" -d "@${deployment_policies_path}/deployment-policy-4.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/deploymentPolicies - -echo "Adding php cartridge..." -curl -X POST -H "Content-Type: application/json" -d "@${iaas_cartridges_path}/php.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges - -sleep 1 - -echo "Adding application policy..." -curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-4.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies - -echo "Adding application..." -curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/application.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications - -sleep 1 - -echo "Deploying application..." -curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/app-bursting-pattern-app/deploy/application-policy-4 http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/common/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/common/undeploy.sh b/samples/applications/app-bursting-pattern/scripts/common/undeploy.sh deleted file mode 100644 index 2a05ba5..0000000 --- a/samples/applications/app-bursting-pattern/scripts/common/undeploy.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -host_ip="localhost" -host_port=9443 - -set -e - -echo "Undeploying application..." -curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/app-bursting-pattern-app/undeploy - -sleep 10 - -echo "Deleting application..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/app-bursting-pattern-app - -echo "Removing cartridges..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges/php - -echo "Removing autoscale policies..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/autoscalingPolicies/autoscaling-policy-1 - -echo "Removing deployment policies..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/deploymentPolicies/deployment-policy-4 - -echo "Removing network partitions..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions/network-partition-1 -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions/network-partition-2 -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions/network-partition-3 -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions/network-partition-4 - -echo "Removing application policies..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies/application-policy-4 - http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/ec2/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/ec2/deploy.sh b/samples/applications/app-bursting-pattern/scripts/ec2/deploy.sh deleted file mode 100755 index 1370667..0000000 --- a/samples/applications/app-bursting-pattern/scripts/ec2/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -iaas="ec2" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/deploy.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/ec2/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/ec2/undeploy.sh b/samples/applications/app-bursting-pattern/scripts/ec2/undeploy.sh deleted file mode 100644 index 17d8c71..0000000 --- a/samples/applications/app-bursting-pattern/scripts/ec2/undeploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/kubernetes/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/kubernetes/deploy.sh b/samples/applications/app-bursting-pattern/scripts/kubernetes/deploy.sh deleted file mode 100755 index d6c47c1..0000000 --- a/samples/applications/app-bursting-pattern/scripts/kubernetes/deploy.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -host_ip="localhost" -host_port=9443 -iaas="kubernetes" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` -kubernetes_clusters_path=`cd "${script_path}/../../../../kubernetes-clusters"; pwd` - - -echo "Adding kubernetes cluster..." -curl -X POST -H "Content-Type: application/json" -d "@${kubernetes_clusters_path}/kubernetes-cluster-1.json" -k -u admin:admin https://${host_ip}:${host_port}/api/kubernetesClusters - -bash ${common_folder}/deploy.sh ${iaas} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/kubernetes/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/kubernetes/undeploy.sh b/samples/applications/app-bursting-pattern/scripts/kubernetes/undeploy.sh deleted file mode 100755 index 0054670..0000000 --- a/samples/applications/app-bursting-pattern/scripts/kubernetes/undeploy.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -host_ip="localhost" -host_port=9443 - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh - -echo "Removing kubernetes cluster..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/kubernetesClusters/kubernetes-cluster-1 http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/mock/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/mock/deploy.sh b/samples/applications/app-bursting-pattern/scripts/mock/deploy.sh deleted file mode 100755 index 93f8517..0000000 --- a/samples/applications/app-bursting-pattern/scripts/mock/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -iaas="mock" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/deploy.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/mock/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/mock/undeploy.sh b/samples/applications/app-bursting-pattern/scripts/mock/undeploy.sh deleted file mode 100755 index 17d8c71..0000000 --- a/samples/applications/app-bursting-pattern/scripts/mock/undeploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/openstack/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/openstack/deploy.sh b/samples/applications/app-bursting-pattern/scripts/openstack/deploy.sh deleted file mode 100755 index 4c39959..0000000 --- a/samples/applications/app-bursting-pattern/scripts/openstack/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -iaas="openstack" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/deploy.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/app-bursting-pattern/scripts/openstack/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/app-bursting-pattern/scripts/openstack/undeploy.sh b/samples/applications/app-bursting-pattern/scripts/openstack/undeploy.sh deleted file mode 100644 index 17d8c71..0000000 --- a/samples/applications/app-bursting-pattern/scripts/openstack/undeploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/README.md ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/README.md b/samples/applications/complex-app-with-lb/README.md deleted file mode 100644 index daaacc1..0000000 --- a/samples/applications/complex-app-with-lb/README.md +++ /dev/null @@ -1,13 +0,0 @@ -Complex App with a Load Balancer -================================ - -Application folder structure ----------------------------- --- artifacts/<iaas>/ IaaS specific artifacts --- scripts/common/ Common scripts for all iaases --- scripts/<iaas> IaaS specific scripts - -How to run ----------- -cd scripts/<iaas>/ -./deploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/artifacts/application.json ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/artifacts/application.json b/samples/applications/complex-app-with-lb/artifacts/application.json deleted file mode 100644 index e3ba6af..0000000 --- a/samples/applications/complex-app-with-lb/artifacts/application.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "applicationId": "complex-app-with-lb", - "alias": "complex-app-with-lb-v1", - "components": { - "groups": [ - { - "name": "group6", - "alias": "my-group6", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "deploymentPolicy":"deployment-policy-1", - "groups": [ - { - "name": "group7", - "alias": "my-group7", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat1-group7", - "autoscalingPolicy": "autoscaling-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat2-group6", - "autoscalingPolicy": "autoscaling-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - }, - { - "name": "group8", - "alias": "my-group8", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "deploymentPolicy":"deployment-policy-1", - "groups": [ - { - "name": "group9", - "alias": "my-group9", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat1-group9", - "autoscalingPolicy": "autoscaling-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat2-group8", - "autoscalingPolicy": "autoscaling-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } - ], - "cartridges": [ - { - "type": "stratos-lb", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-stratos-lb", - "autoscalingPolicy": "autoscaling-policy-1", - "deploymentPolicy":"deployment-policy-1" - } - }, - { - "type": "tomcat", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat", - "autoscalingPolicy": "autoscaling-policy-1", - "deploymentPolicy":"deployment-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ], - "dependencies": { - "startupOrders": [ - "cartridge.my-tomcat,cartridge.my-stratos-lb,group.my-group6,group.my-group8" - ], - "terminationBehaviour": "terminate-all" - } - } -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/common/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/common/deploy.sh b/samples/applications/complex-app-with-lb/scripts/common/deploy.sh deleted file mode 100755 index a1359bd..0000000 --- a/samples/applications/complex-app-with-lb/scripts/common/deploy.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash - -iaas=$1 -host_ip="localhost" -host_port=9443 - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` - -artifacts_path=`cd "${script_path}/../../artifacts"; pwd` -iaas_artifacts_path=`cd "${script_path}/../../artifacts/${iaas}"; pwd` -cartridges_path=`cd "${script_path}/../../../../cartridges/${iaas}"; pwd` -cartridges_groups_path=`cd "${script_path}/../../../../cartridges-groups"; pwd` -autoscaling_policies_path=`cd "${script_path}/../../../../autoscaling-policies"; pwd` -network_partitions_path=`cd "${script_path}/../../../../network-partitions/${iaas}"; pwd` -deployment_policies_path=`cd "${script_path}/../../../../deployment-policies"; pwd` -application_policies_path=`cd "${script_path}/../../../../application-policies"; pwd` - -set -e - -if [[ -z "${iaas}" ]]; then - echo "Usage: deploy.sh [iaas]" - exit -fi - -echo ${autoscaling_policies_path}/autoscaling-policy-1.json -echo "Adding autoscale policy..." -curl -X POST -H "Content-Type: application/json" -d "@${autoscaling_policies_path}/autoscaling-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/autoscalingPolicies - -echo "Adding network partitions..." -curl -X POST -H "Content-Type: application/json" -d "@${network_partitions_path}/network-partition-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions - -echo "Adding deployment policies..." -curl -X POST -H "Content-Type: application/json" -d "@${deployment_policies_path}/deployment-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/deploymentPolicies - -echo "Adding load balancer cartridge..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_path}/stratos-lb.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges - -echo "Adding tomcat cartridge..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_path}/tomcat.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges - -echo "Adding tomcat1 cartridge..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_path}/tomcat1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges - -echo "Adding tomcat2 cartridge..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_path}/tomcat2.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges - -echo "Adding group6c group..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/group6c3.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridgeGroups - -echo "Adding group8c group..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/group8c.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridgeGroups - -sleep 1 - -echo "Adding application policy..." -curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies - -sleep 1 - -echo "Creating application..." -curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/application.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications - -sleep 1 - -echo "Deploying application..." -curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/complex-app-with-lb/deploy/application-policy-1 http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/common/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/common/undeploy.sh b/samples/applications/complex-app-with-lb/scripts/common/undeploy.sh deleted file mode 100644 index 618348d..0000000 --- a/samples/applications/complex-app-with-lb/scripts/common/undeploy.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -host_ip="localhost" -host_port=9443 - -set -e - -echo "Undeploying application..." -curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/complex-app-with-lb/undeploy - -sleep 10 - -echo "Deleting application..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/complex-app-with-lb - -echo "Removing groups..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridgeGroups/group8 -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridgeGroups/group6 - -echo "Removing cartridges..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges/tomcat -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges/tomcat1 -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges/tomcat2 -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges/stratos-lb - -echo "Removing autoscale policies..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/autoscalingPolicies/autoscaling-policy-1 - -echo "Removing application policies..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies/application-policy-1 - http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/ec2/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/ec2/deploy.sh b/samples/applications/complex-app-with-lb/scripts/ec2/deploy.sh deleted file mode 100755 index 1370667..0000000 --- a/samples/applications/complex-app-with-lb/scripts/ec2/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -iaas="ec2" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/deploy.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/ec2/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/ec2/undeploy.sh b/samples/applications/complex-app-with-lb/scripts/ec2/undeploy.sh deleted file mode 100644 index 17d8c71..0000000 --- a/samples/applications/complex-app-with-lb/scripts/ec2/undeploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/kubernetes/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/kubernetes/deploy.sh b/samples/applications/complex-app-with-lb/scripts/kubernetes/deploy.sh deleted file mode 100755 index 32eff3c..0000000 --- a/samples/applications/complex-app-with-lb/scripts/kubernetes/deploy.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -host_ip="localhost" -host_port=9443 -iaas="kubernetes" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` -iaas_artifacts_path=`cd "${script_path}/../../artifacts/${iaas}"; pwd` - -echo "Adding kubernetes cluster..." -curl -X POST -H "Content-Type: application/json" -d "@${iaas_artifacts_path}/kubernetes-cluster.json" -k -u admin:admin https://${host_ip}:${host_port}/api/kubernetesClusters - -bash ${common_folder}/deploy.sh ${iaas} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/kubernetes/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/kubernetes/undeploy.sh b/samples/applications/complex-app-with-lb/scripts/kubernetes/undeploy.sh deleted file mode 100644 index 0054670..0000000 --- a/samples/applications/complex-app-with-lb/scripts/kubernetes/undeploy.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -host_ip="localhost" -host_port=9443 - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh - -echo "Removing kubernetes cluster..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/kubernetesClusters/kubernetes-cluster-1 http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/mock/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/mock/deploy.sh b/samples/applications/complex-app-with-lb/scripts/mock/deploy.sh deleted file mode 100755 index 93f8517..0000000 --- a/samples/applications/complex-app-with-lb/scripts/mock/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -iaas="mock" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/deploy.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/mock/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/mock/undeploy.sh b/samples/applications/complex-app-with-lb/scripts/mock/undeploy.sh deleted file mode 100755 index 17d8c71..0000000 --- a/samples/applications/complex-app-with-lb/scripts/mock/undeploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/openstack/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/openstack/deploy.sh b/samples/applications/complex-app-with-lb/scripts/openstack/deploy.sh deleted file mode 100755 index 4c39959..0000000 --- a/samples/applications/complex-app-with-lb/scripts/openstack/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -iaas="openstack" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/deploy.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app-with-lb/scripts/openstack/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app-with-lb/scripts/openstack/undeploy.sh b/samples/applications/complex-app-with-lb/scripts/openstack/undeploy.sh deleted file mode 100644 index 17d8c71..0000000 --- a/samples/applications/complex-app-with-lb/scripts/openstack/undeploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/README.md ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/README.md b/samples/applications/complex-app/README.md deleted file mode 100644 index 47015bf..0000000 --- a/samples/applications/complex-app/README.md +++ /dev/null @@ -1,13 +0,0 @@ -Complex App -=========== - -Application folder structure ----------------------------- --- artifacts/<iaas>/ IaaS specific artifacts --- scripts/common/ Common scripts for all iaases --- scripts/<iaas> IaaS specific scripts - -How to run ----------- -cd scripts/<iaas>/ -./deploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/artifacts/application.json ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/artifacts/application.json b/samples/applications/complex-app/artifacts/application.json deleted file mode 100644 index 7b85f93..0000000 --- a/samples/applications/complex-app/artifacts/application.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "applicationId": "complex-app", - "alias": "my-complex-app", - "components": { - "groups": [ - { - "name": "group6", - "alias": "my-group6", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "deploymentPolicy":"deployment-policy-1", - "groups": [ - { - "name": "group7", - "alias": "my-group7", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat1-group7", - "autoscalingPolicy": "autoscaling-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat2-group6", - "autoscalingPolicy": "autoscaling-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - }, - { - "name": "group8", - "alias": "my-group8", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "deploymentPolicy":"deployment-policy-1", - "groups": [ - { - "name": "group9", - "alias": "my-group9", - "groupMinInstances": 1, - "groupMaxInstances": 1, - "cartridges": [ - { - "type": "tomcat1", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat1-group9", - "autoscalingPolicy": "autoscaling-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat1-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat2", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat2-group8", - "autoscalingPolicy": "autoscaling-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat2-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ] - } - ], - "cartridges": [ - { - "type": "tomcat", - "cartridgeMin": 1, - "cartridgeMax": 2, - "subscribableInfo": { - "alias": "my-tomcat", - "autoscalingPolicy": "autoscaling-policy-1", - "deploymentPolicy":"deployment-policy-1", - "artifactRepository":{ - "privateRepo":false, - "repoUrl":"https://github.com/imesh/stratos-tomcat-applications.git", - "repoUsername":"", - "repoPassword":"" - } - } - } - ], - "dependencies": { - "startupOrders": [ - "group.my-group8,cartridge.my-tomcat,group.my-group6" - ], - "terminationBehaviour": "terminate-all" - } - } -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/artifacts/autoscaling-policy.json ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/artifacts/autoscaling-policy.json b/samples/applications/complex-app/artifacts/autoscaling-policy.json deleted file mode 100755 index b41726e..0000000 --- a/samples/applications/complex-app/artifacts/autoscaling-policy.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "autoscaling-policy-1", - "loadThresholds": { - "requestsInFlight": { - "threshold": 80 - }, - "memoryConsumption": { - "threshold": 90 - }, - "loadAverage": { - "threshold": 50 - } - } -} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/artifacts/deployment-policy.json ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/artifacts/deployment-policy.json b/samples/applications/complex-app/artifacts/deployment-policy.json deleted file mode 100644 index 666c299..0000000 --- a/samples/applications/complex-app/artifacts/deployment-policy.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "deployment-policy-1", - "networkPartition": [ - { - "id": "network-partition-1", - "partitionAlgo": "one-after-another", - "partitions": [ - { - "id": "partition-1", - "max": 5 - } - ] - } - ] -} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/common/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/common/deploy.sh b/samples/applications/complex-app/scripts/common/deploy.sh deleted file mode 100755 index 99f97f0..0000000 --- a/samples/applications/complex-app/scripts/common/deploy.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -iaas=$1 -host_ip="localhost" -host_port=9443 - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` - -artifacts_path=`cd "${script_path}/../../artifacts"; pwd` -iaas_artifacts_path=`cd "${script_path}/../../artifacts/${iaas}"; pwd` -cartridges_path=`cd "${script_path}/../../../../cartridges/${iaas}"; pwd` -cartridges_groups_path=`cd "${script_path}/../../../../cartridges-groups"; pwd` -autoscaling_policies_path=`cd "${script_path}/../../../../autoscaling-policies"; pwd` -network_partitions_path=`cd "${script_path}/../../../../network-partitions/${iaas}"; pwd` -deployment_policies_path=`cd "${script_path}/../../../../deployment-policies"; pwd` -application_policies_path=`cd "${script_path}/../../../../application-policies"; pwd` - -set -e - -if [[ -z "${iaas}" ]]; then - echo "Usage: deploy.sh [iaas]" - exit -fi - -echo ${autoscaling_policies_path}/autoscaling-policy-1.json -echo "Adding autoscale policy..." -curl -X POST -H "Content-Type: application/json" -d "@${autoscaling_policies_path}/autoscaling-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/autoscalingPolicies - -echo "Adding network partitions..." -curl -X POST -H "Content-Type: application/json" -d "@${network_partitions_path}/network-partition-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions - -echo "Adding deployment policies..." -curl -X POST -H "Content-Type: application/json" -d "@${deployment_policies_path}/deployment-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/deploymentPolicies - -echo "Adding tomcat cartridge..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_path}/tomcat.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges - -echo "Adding tomcat1 cartridge..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_path}/tomcat1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges - -echo "Adding tomcat2 cartridge..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_path}/tomcat2.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges - -echo "Adding group6c group..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/group6c3.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridgeGroups - -echo "Adding group8c group..." -curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/group8c.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridgeGroups - -sleep 1 - -echo "Adding application policy..." -curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies - -sleep 1 - -echo "Creating application..." -curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/application.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications - -sleep 1 - -echo "Deploying application..." -curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/complex-app/deploy/application-policy-1 http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/common/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/common/undeploy.sh b/samples/applications/complex-app/scripts/common/undeploy.sh deleted file mode 100644 index 455174f..0000000 --- a/samples/applications/complex-app/scripts/common/undeploy.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -host_ip="localhost" -host_port=9443 - -set -e - -echo "Undeploying application..." -curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/complex-app/undeploy - -sleep 10 - -echo "Deleting application..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/complex-app - -echo "Removing groups..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridgeGroups/group8 -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridgeGroups/group6 - -echo "Removing cartridges..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges/tomcat -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges/tomcat1 -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/cartridges/tomcat2 - -echo "Removing autoscale policies..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/autoscalingPolicies/autoscaling-policy-1 - -echo "Removing deployment policies..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/deploymentPolicies/deployment-policy-1 - -echo "Removing network partitions..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/networkPartitions/network-partition-1 - -echo "Removing application policies..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies/application-policy-1 - http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/ec2/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/ec2/deploy.sh b/samples/applications/complex-app/scripts/ec2/deploy.sh deleted file mode 100755 index 1370667..0000000 --- a/samples/applications/complex-app/scripts/ec2/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -iaas="ec2" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/deploy.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/ec2/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/ec2/undeploy.sh b/samples/applications/complex-app/scripts/ec2/undeploy.sh deleted file mode 100644 index 17d8c71..0000000 --- a/samples/applications/complex-app/scripts/ec2/undeploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/kubernetes/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/kubernetes/deploy.sh b/samples/applications/complex-app/scripts/kubernetes/deploy.sh deleted file mode 100755 index 32eff3c..0000000 --- a/samples/applications/complex-app/scripts/kubernetes/deploy.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -host_ip="localhost" -host_port=9443 -iaas="kubernetes" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` -iaas_artifacts_path=`cd "${script_path}/../../artifacts/${iaas}"; pwd` - -echo "Adding kubernetes cluster..." -curl -X POST -H "Content-Type: application/json" -d "@${iaas_artifacts_path}/kubernetes-cluster.json" -k -u admin:admin https://${host_ip}:${host_port}/api/kubernetesClusters - -bash ${common_folder}/deploy.sh ${iaas} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/kubernetes/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/kubernetes/undeploy.sh b/samples/applications/complex-app/scripts/kubernetes/undeploy.sh deleted file mode 100644 index 0054670..0000000 --- a/samples/applications/complex-app/scripts/kubernetes/undeploy.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -host_ip="localhost" -host_port=9443 - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh - -echo "Removing kubernetes cluster..." -curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/kubernetesClusters/kubernetes-cluster-1 http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/mock/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/mock/deploy.sh b/samples/applications/complex-app/scripts/mock/deploy.sh deleted file mode 100755 index 93f8517..0000000 --- a/samples/applications/complex-app/scripts/mock/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -iaas="mock" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/deploy.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/mock/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/mock/undeploy.sh b/samples/applications/complex-app/scripts/mock/undeploy.sh deleted file mode 100755 index 17d8c71..0000000 --- a/samples/applications/complex-app/scripts/mock/undeploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/openstack/deploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/openstack/deploy.sh b/samples/applications/complex-app/scripts/openstack/deploy.sh deleted file mode 100755 index 4c39959..0000000 --- a/samples/applications/complex-app/scripts/openstack/deploy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -iaas="openstack" - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/deploy.sh ${iaas} http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex-app/scripts/openstack/undeploy.sh ---------------------------------------------------------------------- diff --git a/samples/applications/complex-app/scripts/openstack/undeploy.sh b/samples/applications/complex-app/scripts/openstack/undeploy.sh deleted file mode 100644 index 17d8c71..0000000 --- a/samples/applications/complex-app/scripts/openstack/undeploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -prgdir=`dirname "$0"` -script_path=`cd "$prgdir"; pwd` -common_folder=`cd "${script_path}/../common"; pwd` - -bash ${common_folder}/undeploy.sh http://git-wip-us.apache.org/repos/asf/stratos/blob/aaa8a0f4/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/README.md ---------------------------------------------------------------------- diff --git a/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/README.md b/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/README.md new file mode 100644 index 0000000..6cb7cdc --- /dev/null +++ b/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/README.md @@ -0,0 +1,10 @@ +single_cartridge +================ +i) In this artifact sample you can find we have listed them as mock and openstack. + +ii) In this sample artifact, it deployes simple application with a php cartridge and start it. + +iii) You can choose the IaaS and navigate to it and simply run the single_cartridge.sh file. It'll deploy the relevant artifacts and start the application. + + +This sample can be used to test the startup order pattern. As defined, the application is using dbgroup(mysql, postgres), app-group(tomcat, php) and esb. In this case, appgroup and esb are depending on dbgroup. So, dbgroup should start first. Other two can come up in parallel after dbgroup started. When starting of appgroup, tomcat depends on php. In that case, tomcat will have to come up first and then php. By running this sample, this particular scenario can be simulated.
