Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | #open rpm |
| 2 | #install jetty |
| 3 | #run installJettyBase.sh |
| 4 | #copy jvm.properties to base |
| 5 | #export variables |
| 6 | #run startJetty.sh |
| 7 | |
| 8 | #Properties: |
| 9 | |
| 10 | STOP.PORT=[number] |
| 11 | The port to use to stop the running Jetty server. |
| 12 | Required along with STOP.KEY if you want to use the --stop option above. |
| 13 | |
| 14 | STOP.KEY=[alphanumeric] |
| 15 | The passphrase defined to stop the server. |
| 16 | Requried along with STOP.PORT if you want to use the --stop option above. |
| 17 | |
| 18 | STOP.WAIT=[number] |
| 19 | The time (in seconds) to wait for confirmation that the running |
| 20 | Jetty server has stopped. If not specified, the stopper will wait |
| 21 | indefinitely. Use in conjunction with the --stop option. |
| 22 | |
| 23 | |
| 24 | #Upload Normative types: |
| 25 | # 1. create zip file containing the yaml |
| 26 | # 2. create json string (payloadName should be the yml file name): { |
| 27 | # "payloadName":"normative-types-new-root.yml", |
| 28 | # "userId":"adminid", |
| 29 | # "resourceName":"tosca.nodes.Root", |
| 30 | # "description":"Represents a generic software component that can be managed and run by a Compute Node Type.", |
| 31 | # "resourceIconPath":"defaulticon", |
| 32 | # "category":"Abstract", |
| 33 | # "tags":["Root"] |
| 34 | # } |
| 35 | # |
| 36 | # |
| 37 | # 3. run curl command: curl -v -F resourceMetadata=<json string> -F resourceZip=@<zip file location> <BE host:port>/sdc2/rest/v1/catalog/upload/multipart |
| 38 | # e.g.: |
| 39 | # curl -v -F resourceMetadata='{"payloadName":"normative-types-new-root.yml","userId":"adminid","resourceName":"tosca.nodes.Root","description":"Represents a generic software component that can be managed and run by a Compute Node Type.","resourceIconPath":"defaulticon","category":"Abstract","tags":["Root"]}' -F resourceZip=@/var/tmp/normative-types-new-root.zip localhost:8080/sdc2/rest/v1/catalog/upload/multipart |
| 40 | |
| 41 | # |