forked from larsks/heat-docker-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresource.yml
99 lines (97 loc) · 3.62 KB
/
resource.yml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# This is the output of "heat resource-template DockerInc::Docker::Container".
HeatTemplateFormatVersion: '2012-12-12'
Outputs:
info: {Description: Container info., Value: '{"Fn::GetAtt": ["DockerContainer",
"info"]}'}
logs: {Description: Container logs., Value: '{"Fn::GetAtt": ["DockerContainer",
"logs"]}'}
logs_head: {Description: Container first logs line., Value: '{"Fn::GetAtt": ["DockerContainer",
"logs_head"]}'}
logs_tail: {Description: Container last logs line., Value: '{"Fn::GetAtt": ["DockerContainer",
"logs_tail"]}'}
network_gateway: {Description: Container ip gateway., Value: '{"Fn::GetAtt": ["DockerContainer",
"network_gateway"]}'}
network_info: {Description: Container network info., Value: '{"Fn::GetAtt": ["DockerContainer",
"network_info"]}'}
network_ip: {Description: Container ip address., Value: '{"Fn::GetAtt": ["DockerContainer",
"network_ip"]}'}
network_tcp_ports: {Description: Container TCP ports., Value: '{"Fn::GetAtt": ["DockerContainer",
"network_tcp_ports"]}'}
network_udp_ports: {Description: Container UDP ports., Value: '{"Fn::GetAtt": ["DockerContainer",
"network_udp_ports"]}'}
Parameters:
cmd:
Default: []
Description: Command to run after spawning the container.
Type: CommaDelimitedList
dns: {Description: Set custom dns servers., Type: CommaDelimitedList}
docker_endpoint: {Description: Docker daemon endpoint (by default the local docker
daemon will be used)., Type: String}
env: {Description: Set environment variables., Type: CommaDelimitedList}
hostname: {Default: '', Description: Hostname of the container., Type: String}
image: {Description: Image name., Type: String}
links: {Description: Links to other containers., Type: Json}
memory: {Default: 0, Description: Memory limit (Bytes)., Type: Number}
name: {Description: Name of the container., Type: String}
open_stdin:
AllowedValues: ['True', 'true', 'False', 'false']
Default: false
Description: Open stdin.
Type: String
port_bindings: {Description: TCP/UDP ports bindings., Type: Json}
port_specs: {Description: TCP/UDP ports mapping., Type: CommaDelimitedList}
privileged:
AllowedValues: ['True', 'true', 'False', 'false']
Default: false
Description: Enable extended privileges.
Type: String
stdin_once:
AllowedValues: ['True', 'true', 'False', 'false']
Default: false
Description: If true, close stdin after the 1 attached client disconnects.
Type: String
tty:
AllowedValues: ['True', 'true', 'False', 'false']
Default: false
Description: Allocate a pseudo-tty.
Type: String
user: {Default: '', Description: Username or UID., Type: String}
volumes:
Default: {}
Description: Create a bind mount.
Type: Json
volumes_from: {Default: '', Description: Mount all specified volumes., Type: String}
Resources:
DockerContainer:
Properties:
cmd:
Fn::Split:
- ','
- {Ref: cmd}
dns:
Fn::Split:
- ','
- {Ref: dns}
docker_endpoint: {Ref: docker_endpoint}
env:
Fn::Split:
- ','
- {Ref: env}
hostname: {Ref: hostname}
image: {Ref: image}
links: {Ref: links}
memory: {Ref: memory}
name: {Ref: name}
open_stdin: {Ref: open_stdin}
port_bindings: {Ref: port_bindings}
port_specs:
Fn::Split:
- ','
- {Ref: port_specs}
privileged: {Ref: privileged}
stdin_once: {Ref: stdin_once}
tty: {Ref: tty}
user: {Ref: user}
volumes: {Ref: volumes}
volumes_from: {Ref: volumes_from}
Type: DockerInc::Docker::Container