Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a docker image loader TOSCA component #148

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added an abstract component for common properties
laurentganne committed Mar 10, 2021
commit f58a32240f7755ee0947d87522ce02fe09faa436
21 changes: 13 additions & 8 deletions org/ystia/docker/images/types.yml
Original file line number Diff line number Diff line change
@@ -18,15 +18,11 @@ imports:
- yorc-types:1.1.0

node_types:
org.ystia.docker.images.ArchiveLoader:
org.ystia.docker.images.pub.ArchiveLoader:
derived_from: tosca.nodes.SoftwareComponent
description: Loads a docker image from a tar archive
abstract: true
description: Loads a docker image from a tar archive (abstract)
properties:
path:
type: string
description: >
Path to the tar archive (can be compressed with gzip, bzip2, or xz)).
required: true
name:
type: string
description: >
@@ -66,6 +62,15 @@ node_types:
# Empty if no name was specified or if the image was already loaded
# and force_load is set to false
repo_tags: { get_operation_output: [SELF, Standard, start, REPO_TAGS] }
org.ystia.docker.images.ArchiveLoader:
derived_from: org.ystia.docker.images.pub.ArchiveLoader
description: Loads a docker image from a tar archive
properties:
path:
type: string
description: >
Path to the tar archive (can be compressed with gzip, bzip2, or xz)).
required: true
interfaces:
Standard:
inputs:
@@ -89,7 +94,7 @@ node_types:
REPO_TAGS: { get_attribute: [SELF, repo_tags] }
implementation: playbooks/remove_image.yaml
org.ystia.docker.images.RuntimePathArchiveLoader:
derived_from: org.ystia.docker.images.ArchiveLoader
derived_from: org.ystia.docker.images.pub.ArchiveLoader
description: >
Loads a docker image from a tar archive whose path is provided at runtime
by a component implementing capability org.ystia.docker.images.relationships.ArchiveProvider