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 execution environment file for ansible-builder #4

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

madorn
Copy link
Contributor

@madorn madorn commented Jul 12, 2023

Adding execution environment file for building an ee container image via ansible-builder.

To build it: ansible-builder build --container-runtime=podman --tag=opcap-ansible-ee --prune-images --verbosity 3.

Due to openshift-clients package requirement when pulling in kubernetes.core collection within ansible-builder's multi-stage build, it will require a subscription-manager login on the host running the build. I tried a variety of combinations of aap base images + additional dependencies with no success. An elegant solution may still exist. See https://access.redhat.com/solutions/6985157 and ansible/ansible-builder#472 for more info.

Use ansible-navigator to run playbooks: ansible-navigator run audits.yaml --eei quay.io/opdev/opcap-ansible-ee:latest -e @vars.yaml --senv K8S_AUTH_KUBECONFIG=/dir/config --eev /dir:/dir -m stdout

Issue #1

@exe-prow-github-app exe-prow-github-app bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 12, 2023
@madorn madorn requested review from bcrochet and acmenezes and removed request for OchiengEd, mgoerens and acmenezes July 12, 2023 01:14
@bcrochet
Copy link
Contributor

Did you attempt to use the upstream ee base images from quay.io/ansible?

EE_BASE_IMAGE='quay.io/ansible/ansible-runner:latest'
EE_BUILDER_IMAGE='quay.io/ansible/ansible-builder:latest'

@exe-prow-github-app exe-prow-github-app bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 12, 2023
execution-environment.yml Outdated Show resolved Hide resolved
@bcrochet
Copy link
Contributor

Also, can you add the 'How to run' information to the README?

@madorn madorn added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 12, 2023
@exe-prow-github-app exe-prow-github-app bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 12, 2023
@madorn madorn removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 12, 2023
@madorn madorn requested a review from bcrochet July 12, 2023 19:07
Copy link
Contributor

@acmenezes acmenezes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working well. Just tested. Thanks!

@exe-prow-github-app exe-prow-github-app bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 13, 2023
Copy link
Contributor

@bcrochet bcrochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@exe-prow-github-app
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: acmenezes, bcrochet

Associated issue: #1

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app bot added the lgtm Indicates that a PR is ready to be merged. label Jul 13, 2023
@exe-prow-github-app exe-prow-github-app bot merged commit 5f66cf9 into opdev:main Jul 13, 2023
@madorn madorn deleted the md-ee branch July 18, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants