-
Notifications
You must be signed in to change notification settings - Fork 6
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
laurentganne
wants to merge
17
commits into
develop
Choose a base branch
from
feature/GH-140-docker-image-loader
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUTO_REMOVE: { get_property: [SELF, auto_remove] } | ||
CLEANUP: { get_property: [SELF, cleanup] } | ||
COMMAND: { get_property: [SELF, docker_run_cmd] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably also deal with docker_run_args
.
Note that the docker_container
ansible module accept also a list of strings as a command...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request description
Description of the change
Added new TOSCA component to be able to load a docker image from a tar archive, as described in GH-140
Misc.: fixed some installation issues
What I did
org/ystia/docker/images/types.yml
:Added a TOSCA compoent type
org.ystia.docker.images.ArchiveLoader
to load a docker image from a tar archiveAdded as well a TOSCA component type
org.ystia.docker.images.RuntimePathArchiveLoader
to load a docker image from a tar archive whose path is only known at runtime.org/ystia/docker/images/playbooks/create.yaml
org/ystia/docker/images/playbooks/load_archive.yaml
org/ystia/docker/images/playbooks/remove_image.yaml
Added implementations for these component interfaces
Misc - Fixed some installations issues:
org/ystia/docker/ansible/playbooks/create.yaml
Updated the repository url to support different versions
org/ystia/docker/containers/generic/playbooks/create.yaml
Fixed some pip installation issues
org/ystia/docker/containers/generic/playbooks/delete.yaml
org/ystia/docker/containers/generic/playbooks/start.yaml
org/ystia/docker/containers/generic/playbooks/stop.yaml
Fixed an issue where the fact that the container id can change at startup was not taken into account
org/ystia/experimental/consul/linux/ansible/playbooks/consul_install.yaml
Fixed a pip installation issue
How to verify it
Tested in LEXIS project, where a tar gz is stored in a Distributed Data Infrastructure.
This tar gz is downloaded from the Distributed Infrastructure on a Compute Instance, the path on the compute instance being computed at runtime.
A TOSCA component of type
org.ystia.docker.images.RuntimePathArchiveLoader
is then used to load the docker image from this tar gz.See corresponding topology template and component instantiation at https://github.com/lexis-project/application-templates/blob/v0.1.3/weather-climate/applications/adms/adms_template.yaml#L585-L600
Description for the changelog
Add a TOSCA component to load a docker image from a tar archive (GH-140)
Applicable Issues
Fixes #140