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
ansible-galaxy run in a container for stability #157
ansible-galaxy run in a container for stability #157
Conversation
run.sh
Outdated
@@ -45,10 +43,12 @@ else | |||
|
|||
fi | |||
|
|||
DOCKER_RUN_COMMAND="yum -y install git && ansible-galaxy install -r /tmp/src/requirements.yml --roles-path=/tmp/src/galaxy && $DOCKER_RUN_COMMAND" |
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.
To install roles from git repository, git command have to be installed in a container.
- https://github.com/rht-labs/labs-ci-cd/blob/master/galaxy_requirements.yml#L7
- https://github.com/rht-labs/labs-ci-cd/blob/master/requirements.yml#L5
Install git on the base image may be better...
https://github.com/redhat-cop/openshift-applier/blob/master/images/openshift-applier/Dockerfile
galaxy is in the container, but there is a regression in the applier container - it no longer ships git. We'll get this fixed upstream. redhat-cop/openshift-applier#18 @oybed ☝️ |
@literalice can you update the script to consume That tag should have the bug fixed. |
@literalice @sherl0cks as the script doesn't specify a specific tag of the container image, this should just work as-is now with the However, I'd recommend updating the |
just like we are pinning tags in other places, I'd like to pin it here too |
@sherl0cks @oybed Thank you for promptly handling the matter with care! |
@literalice I'm running a test now. |
@literalice looks good. Thanks for the change! Do let us know if you have any issues or feature requests. |
In the README document, the
run.sh
must need only docker runtime, but actually we need to install ansible-galaxy in a machine directly for executingrun.sh
.I think
ansible-galaxy
should be run in a container same asansible-playbook
command.