aboutsummaryrefslogtreecommitdiffstats
path: root/robot/assets
diff options
context:
space:
mode:
Diffstat (limited to 'robot/assets')
-rw-r--r--robot/assets/templates/dcaemod/compspec_with_config_volume.jinja50
-rw-r--r--robot/assets/templates/dcaemod/compspec_without_config_volume.jinja42
2 files changed, 92 insertions, 0 deletions
diff --git a/robot/assets/templates/dcaemod/compspec_with_config_volume.jinja b/robot/assets/templates/dcaemod/compspec_with_config_volume.jinja
new file mode 100644
index 00000000..80feec55
--- /dev/null
+++ b/robot/assets/templates/dcaemod/compspec_with_config_volume.jinja
@@ -0,0 +1,50 @@
+{"owner": "owner-name", "spec":
+{
+ "self": {
+ "version": "1.0.0",
+ "name": "{{comp_spec_name}}",
+ "description": "Dummy DCAE app with config volume",
+ "component_type": "docker"
+ },
+ "streams": {
+ "subscribes": [],
+ "publishes": []
+ },
+ "services": {
+ "calls": [],
+ "provides": []
+ },
+ "parameters": [],
+ "auxilary": {
+ "healthcheck": {
+ "type": "docker",
+ "interval": "45s",
+ "timeout": "15s",
+ "script": "service nginx status"
+ },
+ "volumes": [{
+ "config_volume": {
+ "name": "{{config_map_name}}"
+ },
+ "container": {
+ "bind": "{{volume_mount_path}}"
+ }
+ }],
+ "ports": [
+ "80:0",
+ "99:0"
+ ],
+ "tls_info":{
+ "cert_directory":"/opt/app/dcae-certificate/",
+ "use_tls": false,
+ "use_external_tls": false
+ }
+ },
+ "artifacts": [
+ {
+ "type": "docker image",
+ "uri": "docker.io/nginx:latest"
+ }
+ ]
+}
+} \ No newline at end of file
diff --git a/robot/assets/templates/dcaemod/compspec_without_config_volume.jinja b/robot/assets/templates/dcaemod/compspec_without_config_volume.jinja
new file mode 100644
index 00000000..45ac97fb
--- /dev/null
+++ b/robot/assets/templates/dcaemod/compspec_without_config_volume.jinja
@@ -0,0 +1,42 @@
+{"owner": "owner-name", "spec":
+{
+ "self": {
+ "version": "1.0.0",
+ "name": "{{comp_spec_name}}",
+ "description": "Dummy DCAE app",
+ "component_type": "docker"
+ },
+ "streams": {
+ "subscribes": [],
+ "publishes": []
+ },
+ "services": {
+ "calls": [],
+ "provides": []
+ },
+ "parameters": [],
+ "auxilary": {
+ "healthcheck": {
+ "type": "docker",
+ "interval": "300s",
+ "timeout": "120s",
+ "script": "service nginx status"
+ },
+ "ports": [
+ "80:0",
+ "99:0"
+ ],
+ "tls_info":{
+ "cert_directory":"/opt/app/dcae-certificate/",
+ "use_tls": false,
+ "use_external_tls": false
+ }
+ },
+ "artifacts": [
+ {
+ "type": "docker image",
+ "uri": "docker.io/nginx:latest"
+ }
+ ]
+}
+} \ No newline at end of file