-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
186 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/RabbitMQ-Create/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-RabbitMQ-Create"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="RabbitMQ-Create" type="atyIgeneral:Script" id="RabbitMQ-Create"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/RabbitMQ-Create/files/create.sh"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
39 changes: 39 additions & 0 deletions
39
...s/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/RabbitMQ-Create/files/create.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
|
||
## If sudo is not available on the system, | ||
## uncomment the line below to install it | ||
# apt-get install -y sudo | ||
|
||
sudo apt-get update -y | ||
|
||
## Install prerequisites | ||
sudo apt-get install curl gnupg -y | ||
|
||
## Install RabbitMQ signing key | ||
curl -fsSL https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc | sudo apt-key add - | ||
|
||
## Install apt HTTPS transport | ||
sudo apt-get install apt-transport-https | ||
|
||
## Add Bintray repositories that provision latest RabbitMQ and Erlang 23.x releases | ||
sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list <<EOF | ||
## Installs the latest Erlang 23.x release. | ||
## Change component to "erlang-22.x" to install the latest 22.x version. | ||
## "bionic" as distribution name should work for any later Ubuntu or Debian release. | ||
## See the release to distribution mapping table in RabbitMQ doc guides to learn more. | ||
deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang | ||
## Installs latest RabbitMQ release | ||
deb https://dl.bintray.com/rabbitmq/debian bionic main | ||
EOF | ||
|
||
## Update package indices | ||
sudo apt-get update -y | ||
|
||
## Install rabbitmq-server and its dependencies | ||
sudo apt-get install rabbitmq-server -y --fix-missing | ||
|
||
## Install management plugin | ||
sudo service rabbitmq-server stop | ||
rabbitmq-plugins enable rabbitmq_management | ||
|
||
exit 0 |
1 change: 1 addition & 0 deletions
1
...A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/RabbitMQ-Create/files/create.sh.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
text/x-sh |
8 changes: 8 additions & 0 deletions
8
...s%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/RabbitMQ-Start/ArtifactTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/artifacttemplates" id="winery-defs-for_ateIgeneral1-RabbitMQ-Start"> | ||
<ArtifactTemplate xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" name="RabbitMQ-Start" type="atyIgeneral:Archive" id="RabbitMQ-Start"> | ||
<ArtifactReferences> | ||
<ArtifactReference reference="artifacttemplates/https%253A%252F%252Fedmm.uni-stuttgart.de%252Fartifacttemplates/RabbitMQ-Start/files/start.sh"/> | ||
</ArtifactReferences> | ||
</ArtifactTemplate> | ||
</Definitions> |
3 changes: 3 additions & 0 deletions
3
...tes/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/RabbitMQ-Start/files/start.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
sudo service rabbitmq-server start | ||
exit 0 |
1 change: 1 addition & 0 deletions
1
...%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/RabbitMQ-Start/files/start.sh.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
text/x-sh |
Binary file modified
BIN
+28 Bytes
(100%)
...ps%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SockShop-Shipping/files/shipping.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions
5
...https%3A%2F%2Fedmm.uni-stuttgart.de%2Fartifacttemplates/SpringBoot-Create/files/create.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/bash | ||
apt -y update | ||
apt -y install openjdk-11-jre-headless | ||
# apt -y install openjdk-11-jre-headless | ||
apt -y install openjdk-8-jre-headless | ||
file_name=$(find . -type f -name '*.jar') | ||
cp $file_name ./app.jar | ||
mv $file_name ./app.jar | ||
exit 0 |
9 changes: 9 additions & 0 deletions
9
...dmm.uni-stuttgart.de%2Fnodetypeimplementations/RabbitMQ-Impl/NodeTypeImplementation.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/nodetypeimplementations" id="winery-defs-for_ntyiIgeneral1-RabbitMQ-Impl"> | ||
<NodeTypeImplementation xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" targetNamespace="https://edmm.uni-stuttgart.de/nodetypeimplementations" name="RabbitMQ-Impl" abstract="no" final="no" nodeType="ntyIgeneral:RabbitMQ"> | ||
<ImplementationArtifacts> | ||
<ImplementationArtifact xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" xmlns:ateIgeneral1="https://edmm.uni-stuttgart.de/artifacttemplates" name="create" interfaceName="http://opentosca.org/interfaces/lifecycle" operationName="create" artifactType="atyIgeneral:Script" artifactRef="ateIgeneral1:RabbitMQ-Create"/> | ||
<ImplementationArtifact xmlns:atyIgeneral="https://edmm.uni-stuttgart.de/artifacttypes" xmlns:ateIgeneral1="https://edmm.uni-stuttgart.de/artifacttemplates" name="start" interfaceName="http://opentosca.org/interfaces/lifecycle" operationName="start" artifactType="atyIgeneral:Archive" artifactRef="ateIgeneral1:RabbitMQ-Start"/> | ||
</ImplementationArtifacts> | ||
</NodeTypeImplementation> | ||
</Definitions> |
12 changes: 12 additions & 0 deletions
12
nodetypes/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fnodetypes/MOM/NodeType.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes" id="winery-defs-for_ntyIgeneral-MOM"> | ||
<NodeType name="MOM" abstract="no" final="no" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes"> | ||
<winery:PropertiesDefinition elementname="properties" namespace="https://edmm.uni-stuttgart.de/nodetypes/propertiesdefinition/winery"> | ||
<winery:properties> | ||
<winery:key>port</winery:key> | ||
<winery:type>xsd:integer</winery:type> | ||
</winery:properties> | ||
</winery:PropertiesDefinition> | ||
<DerivedFrom xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" typeRef="ntyIgeneral:Software_Component"/> | ||
</NodeType> | ||
</Definitions> |
Binary file added
BIN
+24.5 KB
...ypes/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fnodetypes/MOM/appearance/bigIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...types/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fnodetypes/MOM/appearance/bigIcon.png.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
image/png |
18 changes: 18 additions & 0 deletions
18
nodetypes/https%3A%2F%2Fedmm.uni-stuttgart.de%2Fnodetypes/RabbitMQ/NodeType.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes" id="winery-defs-for_ntyIgeneral-RabbitMQ"> | ||
<NodeType name="RabbitMQ" abstract="no" final="no" targetNamespace="https://edmm.uni-stuttgart.de/nodetypes"> | ||
<winery:PropertiesDefinition elementname="properties" namespace="https://edmm.uni-stuttgart.de/nodetypes/propertiesdefinition/winery"> | ||
<winery:properties> | ||
<winery:key>management_port</winery:key> | ||
<winery:type>xsd:integer</winery:type> | ||
</winery:properties> | ||
</winery:PropertiesDefinition> | ||
<DerivedFrom xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" typeRef="ntyIgeneral:MOM"/> | ||
<Interfaces> | ||
<Interface name="http://opentosca.org/interfaces/lifecycle"> | ||
<Operation name="create"/> | ||
<Operation name="start"/> | ||
</Interface> | ||
</Interfaces> | ||
</NodeType> | ||
</Definitions> |
Binary file added
BIN
+50.4 KB
...https%3A%2F%2Fedmm.uni-stuttgart.de%2Fnodetypes/RabbitMQ/appearance/bigIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
.../https%3A%2F%2Fedmm.uni-stuttgart.de%2Fnodetypes/RabbitMQ/appearance/bigIcon.png.mimetype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
image/png |
30 changes: 30 additions & 0 deletions
30
...plates/http%3A%2F%2Fwww.example.org%2Ftosca%2Fservicetemplates/Test/ServiceTemplate.tosca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" xmlns:selfservice="http://www.eclipse.org/winery/model/selfservice" xmlns:testwineryopentoscaorg="http://test.winery.opentosca.org" targetNamespace="http://www.example.org/tosca/servicetemplates" id="winery-defs-for_steIgeneral-Test"> | ||
<ServiceTemplate name="Test" targetNamespace="http://www.example.org/tosca/servicetemplates" id="Test"> | ||
<TopologyTemplate> | ||
<NodeTemplate xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" name="RabbitMQ" minInstances="1" maxInstances="1" type="ntyIgeneral:RabbitMQ" id="RabbitMQ_0" winery:x="669" winery:y="181"> | ||
<Properties> | ||
<Properties xmlns="http://www.example.org"> | ||
<port>8888</port> | ||
<management_port>9999</management_port> | ||
</Properties> | ||
</Properties> | ||
</NodeTemplate> | ||
<NodeTemplate xmlns:ntyIgeneral="https://edmm.uni-stuttgart.de/nodetypes" name="Compute" minInstances="1" maxInstances="1" type="ntyIgeneral:Compute" id="Compute_0" winery:x="654" winery:y="394"> | ||
<Properties> | ||
<properties xmlns="https://edmm.uni-stuttgart.de/nodetypes/propertiesdefinition/winery"> | ||
<os_family>linux</os_family> | ||
<machine_image>ubuntu</machine_image> | ||
<instance_type>large</instance_type> | ||
<key_name>empty</key_name> | ||
<public_key>empty</public_key> | ||
</properties> | ||
</Properties> | ||
</NodeTemplate> | ||
<RelationshipTemplate xmlns:tyIgeneral="https://edmm.uni-stuttgart.de/relationtypes" name="HostedOn" type="tyIgeneral:HostedOn" id="con_HostedOn_0"> | ||
<SourceElement ref="RabbitMQ_0"/> | ||
<TargetElement ref="Compute_0"/> | ||
</RelationshipTemplate> | ||
</TopologyTemplate> | ||
</ServiceTemplate> | ||
</Definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters