forked from EarthmanT/cloudify-nodecellar-docker-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodecellar.yaml
More file actions
72 lines (67 loc) · 1.98 KB
/
Copy pathnodecellar.yaml
File metadata and controls
72 lines (67 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
################################################################
# Blueprint node types.
#
# specific new types for the nodecellar app.
# these types are mapped to scripts that are resposible
# for the lifecycle operation.
################################################################
node_types:
###########################################################
# Mongo Database.
#
# This container runs the Mongo database.
###########################################################
nodecellar.nodes.MongoContainer:
derived_from: cloudify.docker.Container
properties:
name:
default: mongod
image:
default:
tag: '3.1'
repository: mongo
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.docker_plugin.tasks.create_container
inputs:
params:
default: {}
start:
implementation: docker.docker_plugin.tasks.start
inputs:
params:
default: {}
processes_to_wait_for:
default: []
retry_interval:
default: 1
###########################################################
# Nodecellar application.
#
# This is the actual application container.
###########################################################
nodecellar.nodes.NodecellarContainer:
derived_from: cloudify.docker.Container
properties:
name:
default: nodecellar
image:
default:
repository: uric/nodecellar
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: docker.docker_plugin.tasks.create_container
inputs:
params:
default: {}
start:
implementation: docker.docker_plugin.tasks.start
inputs:
params:
default: {}
processes_to_wait_for:
default: []
retry_interval:
default: 1