Synchronise the openstack bugs
[parser.git] / tosca2heat / tosca-parser / toscaparser / tests / data / test_containers.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   TOSCA simple profile with mysql docker container.
5
6 # Repositories to retrieve code artifacts from
7 repositories:
8   docker_hub: https://registry.hub.docker.com/
9
10 topology_template:
11
12   inputs:
13     mysql_root_pwd:
14       type: string
15       description: Root password for MySQL.
16
17   node_templates:
18     # The MYSQL container based on official MySQL image in Docker hub
19     mysql_container:
20       type: tosca.nodes.Container.Application
21       requirements:
22         - host: mysql_runtime
23       artifacts:
24         my_image:
25           file: mysql
26           type: tosca.artifacts.Deployment.Image.Container.Docker
27           repository: docker_hub
28       interfaces:
29         Standard:
30           create:
31             implementation: my_image
32             inputs:
33               MYSQL_ROOT_PASSWORD: { get_input: mysql_root_pwd }
34
35     # The properties of the runtime to host the container
36     mysql_runtime:
37       type: tosca.nodes.Container.Runtime
38       capabilities:
39         host:
40           properties:
41             num_cpus: 1
42             disk_size: 10 GB
43             mem_size: 2 MB
44