Dmytro Dovbii 7cb39996f0 Restructure murano-apps repository
Change-Id: I9cdb1e4afcb9929c7b7a5437faaa25d284daefdb
Closes-Bug: #1441644
2015-04-14 09:42:21 +03:00

46 lines
894 B
YAML

Namespaces:
=: io.murano.apps.docker
Name: DockerContainer
Properties:
name:
Contract: $.string().notNull()
image:
Contract: $.string().notNull()
commands:
Contract:
- $.string().notNull()
Default: []
env:
Contract:
$.string().notNull(): $.string().notNull()
Default: {}
ports:
Contract:
- $.class(ApplicationPort)
Default: []
volumes:
Contract:
$.string().notNull(): $.class(DockerVolume).notNull()
Default: {}
Methods:
getRepresentation:
Body:
- $volumeRepresentations: {}
- For: volume
In: $.volumes
Do:
- $volumeRepresentations[$volume]: $.volumes.get($volume).getRepresentation()
- Return:
name: $.name
image: $.image
env: env
ports: $.ports.select($.getRepresentation())
volumes: $volumeRepresentations