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 ansible-builder build endpoint #1994

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

jerabekjiri
Copy link
Contributor

@jerabekjiri jerabekjiri commented Nov 29, 2023

Issue: AAH-2762

  • add unit tests
  • add integration tests
  • nginx unlock size limit on podman push >413 Request Entity Too Large

Tested on example execution_environment.yml with newswangerd.main_collection collection:

---
version: 3
images:
  base_image:
    name: quay.io/centos/centos:stream8 
    
options:
  user: '1000' 

dependencies:
  python_interpreter:
    package_system: python39 
    python_path: /usr/bin/python3.9
  ansible_core:  
    package_pip: https://github.com/ansible/ansible/archive/refs/tags/v2.13.2.tar.gz   # install from a GH ref tarball
  ansible_runner:  
    package_pip: ansible-runner==2.2.1

  galaxy:
    collections:
    - newswangerd.main_collection

How to run builder endpoint:

  1. galaxykit -s http://localhost:5001/api/galaxy/ collection upload foo bar (or just upload any collection to system)
  2. get pulp_href of repository that the collection is in (/api/galaxy/v3/plugin/ansible/search/collection-versions/?namespace=foo&name=bar > repository > pulp_href)
curl -X POST \ 
-H 'Content-Type: application/json' \
-u admin:admin \
-d '{
    "destination_container_repository": "new_ee_image", \
    "container_tag": "1.0.0", \
    "source_collection_repositories": "<repository.pulp_href>" \
    "execution_environment_yaml": "<execution_environment.yml>"
    }' \
http://localhost:5001/api/galaxy/v3/plugin/execution-environments/image-builder/

repository.pulp_href: paste from step 2
execution_environment: paste the example execution_environment.yml posted above

@github-actions github-actions bot added backport-4.2 This PR should be backported to stable-4.2 (1.2) backport-4.4 This PR should be backported to stable-4.4 (2.1) backport-4.5 This PR should be backported to stable-4.5 (2.2) backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) backport-4.9 This PR should be backported to stable-4.9 (2.4) labels Nov 29, 2023
@jerabekjiri jerabekjiri removed backport-4.2 This PR should be backported to stable-4.2 (1.2) backport-4.4 This PR should be backported to stable-4.4 (2.1) backport-4.5 This PR should be backported to stable-4.5 (2.2) backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) backport-4.9 This PR should be backported to stable-4.9 (2.4) labels Nov 29, 2023
@jerabekjiri jerabekjiri force-pushed the feature/ansible-builder-build-ee branch from 5f9fe69 to 3cefd09 Compare December 11, 2023 12:45
Issue: AAH-2762
Issue: AAH-2762
Issue: AAH-2762
Issue: AAH-2762
Issue: AAH-2762
Issue: AAH-2762
Issue: AAH-2762
Issue: AAH-2762
Issue: AAH-2762
Issue: AAH-2762
@jerabekjiri jerabekjiri force-pushed the feature/ansible-builder-build-ee branch from 3cefd09 to 9aeebf0 Compare December 12, 2023 16:23
@jerabekjiri jerabekjiri force-pushed the feature/ansible-builder-build-ee branch from 2501b07 to 0f6306a Compare December 14, 2023 10:31
Issue: AAH-2762
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant