tosca.capabilities.Container.Docker: publish_ports inclusion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TOSCA Parser |
New
|
Undecided
|
Unassigned |
Bug Description
We would like to add below mentioned node under the Docker Container Node type "tosca.
tosca.capabilit
derived_from: tosca.capabilit
properties:
version:
publish_all:
expose_ports:
publish_
volumes:
host_id:
volume_id:
We used the Sample Node Template. But, when we add the publish_ports under the "tosca.
Sample Node Template used:
node_templates:
# The MYSQL container based on official MySQL image in Docker hub
mysql_container:
type: tosca.nodes.
requirements:
- host: mysql_runtime
artifacts:
my_image:
file: mysql
type: tosca.artifacts
repository: docker_hub
interfaces:
Standard:
create:
implementation: my_image
inputs:
MYSQL_
# The properties of the runtime to host the container
mysql_runtime:
type: tosca.nodes.
capabilities:
host:
properties:
num_cpus: 1
disk_size: 10 GB
mem_size: 2 MB