8000 Avoid generation of output fixtures when not needed by ssbarnea · Pull Request #1950 · ansible/ansible-navigator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Avoid generation of output fixtures when not needed #1950

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,5 @@
"absent": [],
"compared_fixture": false
},
"output": [
"usage: ansible-builder [-h] [--version] {create,build,introspect} ...",
"Tooling to help build container images for running Ansible content. Get started by looking at the help text for one of the subcommands.",
"positional arguments:",
" {create,build,introspect}",
" The command to invoke.",
" create Creates a build context, which can be used by podman to build an image.",
" build Builds a container image.",
" introspect Introspects collections in folder.",
"options:",
" -h, --help show this help message and exit",
" --version Print ansible-builder version and exit.",
"(venv) bash$"
]
"output": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,5 @@
"absent": [],
"compared_fixture": false
},
"output": [
"usage: ansible-builder [-h] [--version] {create,build,introspect} ...",
"Tooling to help build container images for running Ansible content. Get started by looking at the help text for one of the subcommands.",
"positional arguments:",
" {create,build,introspect}",
" The command to invoke.",
" create Creates a build context, which can be used by podman to build an image.",
" build Builds a container image.",
" introspect Introspects collections in folder.",
"options:",
" -h, --help show this help message and exit",
" --version Print ansible-builder version and exit.",
"(venv) bash$"
]
"output": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,5 @@
"absent": [],
"compared_fixture": false
},
"output": [
"usage: ansible-builder [-h] [--version] {create,build,introspect} ...",
"Tooling to help build container images for running Ansible content. Get started by looking at the help text for one of the subcommands.",
"positional arguments:",
" {create,build,introspect}",
" The command to invoke.",
" create Creates a build context, which can be used by podman to build an image.",
" build Builds a container image.",
" introspect Introspects collections in folder.",
"options:",
" -h, --help show this help message and exit",
" --version Print ansible-builder version and exit.",
"(venv) bash$"
]
"output": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,5 @@
"absent": [],
"compared_fixture": false
},
"output": [
"usage: ansible-builder [-h] [--version] {create,build,introspect} ...",
"Tooling to help build container images for running Ansible content. Get started by looking at the help text for one of the subcommands.",
"positional arguments:",
" {create,build,introspect}",
" The command to invoke.",
" create Creates a build context, which can be used by podman to build an image.",
" build Builds a container image.",
" introspect Introspects collections in folder.",
"options:",
" -h, --help show this help message and exit",
" --version Print ansible-builder version and exit.",
"(venv) bash$"
]
"output": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,214 +10,5 @@
"absent": [],
"compared_fixture": false
},
"output": [
"Ansible Builder is generating your execution environment build context.",
"File context/_build/requirements.yml is already up-to-date.",
"File context/_build/requirements.txt is already up-to-date.",
"File context/_build/scripts/assemble is already up-to-date.",
"File context/_build/scripts/install-from-bindep is already up-to-date.",
"File context/_build/scripts/introspect.py is already up-to-date.",
"File context/_build/scripts/check_galaxy is already up-to-date.",
"File context/_build/scripts/check_ansible is already up-to-date.",
"File context/_build/scripts/pip_install is already up-to-date.",
"File context/_build/scripts/entrypoint is already up-to-date.",
"Ansible Builder is building your execution environment image. Tags: test_ee",
"Running command:",
" podman build -f context/Containerfile -t test_ee context",
"[1/4] STEP 1/14: FROM quay.io/fedora/python-313:latest AS base",
"[1/4] STEP 2/14: USER root",
"--> Using cache 9ddb997ab2eabc84bf430ecbc203242551061ee1c6e062465d2af5d2e309d17f",
"--> 9ddb997ab2ea",
"[1/4] STEP 3/14: ENV PIP_BREAK_SYSTEM_PACKAGES=1",
"--> Using cache eedbf91747a3fcf8752a914ca9decdeb3985a5d4ca8e9dcacc3571a207f626cc",
"--> eedbf91747a3",
"[1/4] STEP 4/14: ARG EE_BASE_IMAGE",
"--> Using cache 83154054f475a21059d73a8e64afba9adc08c96bd602c6ab0d7dd16fec4db396",
"--> 83154054f475",
"[1/4] STEP 5/14: ARG PYCMD",
"--> Using cache cafacc5e04da27e831d007f30ae69b1a72ec83ade65f8dac7e1a2b6988a6b64c",
"--> cafacc5e04da",
"[1/4] STEP 6/14: ARG PKGMGR_PRESERVE_CACHE",
"--> Using cache 383f79d6450693cddc6713235d84f17bba265c17734cccde8528e0466bc5387d",
"--> 383f79d64506",
"[1/4] STEP 7/14: ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS",
"--> Using cache c823766cd0fc3d3afb22357f2f8cff843066ba9ee4bb4bb04dc308d9fbee91c7",
"--> c823766cd0fc",
"[1/4] STEP 8/14: ARG ANSIBLE_GALAXY_CLI_ROLE_OPTS",
"--> Using cache 84dfdecb411c0708f041e88a5798ed19f696c782a4fee8ab6ac98ace9111e015",
"--> 84dfdecb411c",
"[1/4] STEP 9/14: ARG ANSIBLE_INSTALL_REFS",
"--> Using cache f648357862a3ea0c82bb70dcabba6d3d5e7c0bff8b08d7a9b1f5905914aac4a6",
"--> f648357862a3",
"[1/4] STEP 10/14: ARG PKGMGR",
"--> Using cache e0a1c57cc029f2c2fc1d9dda81cdd15aa22712a6ec4b053222e083637e52f29f",
"--> e0a1c57cc029",
"[1/4] STEP 11/14: COPY _build/scripts/ /output/scripts/",
"--> Using cache 6a35d82de219b289b373e75c77fb24bc4f3567e65b94fb8e66a1560d416bb929",
"--> 6a35d82de219",
"[1/4] STEP 12/14: COPY _build/scripts/entrypoint /opt/builder/bin/entrypoint",
"--> Using cache 036d3c07d9a4ca8970db7279f3681a71433eb57423358a50a445ad68affbfd61",
"--> 036d3c07d9a4",
"[1/4] STEP 13/14: RUN /output/scripts/pip_install $PYCMD",
"--> Using cache 2c3f40a091c3a9d2f4b16cc5a6d9f257eb7eebe6e24137692b39fc194b0d09f0",
"--> 2c3f40a091c3",
"[1/4] STEP 14/14: RUN $PYCMD -m pip install --no-cache-dir $ANSIBLE_INSTALL_REFS",
"--> Using cache 0a0b1fa78d912408b7f77607d2eaee88723f0caa28e0520b08ea16aee5a23e67",
"--> 0a0b1fa78d91",
"[2/4] STEP 1/14: FROM 0a0b1fa78d912408b7f77607d2eaee88723f0caa28e0520b08ea16aee5a23e67 AS galaxy",
"[2/4] STEP 2/14: ARG EE_BASE_IMAGE",
"--> Using cache b6493c759b546569296256a40d7711e4e5e0539fde3f455dc55f337d0c2c5145",
"--> b6493c759b54",
"[2/4] STEP 3/14: ARG PYCMD",
"--> Using cache 1973c19f1c58499dd0ebf751bacb6d738f285a1e5617329b90877fb4a4a66ab0",
"--> 1973c19f1c58",
"[2/4] STEP 4/14: ARG PKGMGR_PRESERVE_CACHE",
"--> Using cache de7555aa32a6605a9ba885f14129ee722bde0015d1c84d4c99c24701e0414c48",
"--> de7555aa32a6",
"[2/4] STEP 5/14: ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS",
"--> Using cache 8685c4657aedebe068bb6fa3fd5467b3d78d5f63d5954dd848e8db176f73b63c",
"--> 8685c4657aed",
"[2/4] STEP 6/14: ARG ANSIBLE_GALAXY_CLI_ROLE_OPTS",
"--> Using cache 5cd318035322d375e0530617cb274c1a8fe6a232432abdd28776502d9df11627",
"--> 5cd318035322",< 10000 /td>
"[2/4] STEP 7/14: ARG ANSIBLE_INSTALL_REFS",
"--> Using cache f69412e6b74ebd8161d0083e076aaf80d6a6886a19686ccee3d003ea8383d258",
"--> f69412e6b74e",
"[2/4] STEP 8/14: ARG PKGMGR",
"--> Using cache 8df234b0f4399044e15683e77acdc1f5c1a87c5bbd1a34085f59a193c30911a8",
"--> 8df234b0f439",
"[2/4] STEP 9/14: RUN /output/scripts/check_galaxy",
"--> Using cache 41bc4709175a27b2942ff4883da26bbbdefe4fe10c0b3b4282b33dccf6adeb22",
"--> 41bc4709175a",
"[2/4] STEP 10/14: COPY _build /build",
"--> Using cache 768d81ba7bfd9d8796a48d968b1a54444b616676d04fa3bf9e80f24cfdf209b7",
"--> 768d81ba7bfd",
"[2/4] STEP 11/14: WORKDIR /build",
"--> Using cache 65fdacb4daa4a09fb7d2c86a4c16b91ccda4b2086a8a12e7d99ff3700bf3edf5",
"--> 65fdacb4daa4",
"[2/4] STEP 12/14: RUN mkdir -p /usr/share/ansible",
"--> Using cache 42bb8f0b1b337b314a08bcdebb44ad1a59fcf8077047a04e4cbd552289622d1f",
"--> 42bb8f0b1b33",
"[2/4] STEP 13/14: RUN ansible-galaxy role install $ANSIBLE_GALAXY_CLI_ROLE_OPTS -r requirements.yml --roles-path \"/usr/share/ansible/roles\"",
"--> Using cache 2ce6f49609ceaf8b16297e0d7e974c0bc65c88f4866a680b1e2b246da6030bd8",
"--> 2ce6f49609ce",
"[2/4] STEP 14/14: RUN ANSIBLE_GALAXY_DISABLE_GPG_VERIFY=1 ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r requirements.yml --collections-path \"/usr/share/ansible/collections\"",
"--> Using cache 28ef0ced44039ee62acb101e68179c41c48e7c8cacd3c67c57c43fef9fce1fa4",
"--> 28ef0ced4403",
"[3/4] STEP 1/15: FROM 0a0b1fa78d912408b7f77607d2eaee88723f0caa28e0520b08ea16aee5a23e67 AS builder",
"[3/4] STEP 2/15: ENV PIP_BREAK_SYSTEM_PACKAGES=1",
"--> Using cache ff340d81562e2ffdae5abbc0c6d064afc864368c974cd5d3fecb42c10da84f3a",
"--> ff340d81562e",
"[3/4] STEP 3/15: WORKDIR /build",
"--> Using cache 4d639619078fb9029960bce2a416d2628f256b0657a39d8b55a4d3d035eed5f1",
"--> 4d639619078f",
"[3/4] STEP 4/15: ARG EE_BASE_IMAGE",
"--> Using cache 22b1d2b952e412d4b95afdcea8169ca10577939859d1fffea2eae3b786fc3a78",
"--> 22b1d2b952e4",
"[3/4] STEP 5/15: ARG PYCMD",
"--> Using cache 95cf010305185d32b7ca3b358742c7d7bc684aa571e033548458c8c4009f4833",
"--> 95cf01030518",
"[3/4] STEP 6/15: ARG PKGMGR_PRESERVE_CACHE",
"--> Using cache e822711bae096e6b55aef1fdc6ed99d1660066ea5d7f955dc81d36734ab841d8",
"--> e822711bae09",
"[3/4] STEP 7/15: ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS",
"--> Using cache a2b31d88deaea3befe4335cf7cc822e76bb525ac35a6707ac19934f2707943c3",
"--> a2b31d88deae",
"[3/4] STEP 8/15: ARG ANSIBLE_GALAXY_CLI_ROLE_OPTS",
"--> Using cache 990e05864b00d231e1b679c7620c34c01401682e1c669482ba1e7cdf86be3a00",
"--> 990e05864b00",
"[3/4] STEP 9/15: ARG ANSIBLE_INSTALL_REFS",
"--> Using cache 839d7fb17d0ac7aa995289104244e92c960e2497799df2f284ee96e25edcbfc6",
"--> 839d7fb17d0a",
"[3/4] STEP 10/15: ARG PKGMGR",
"--> Using cache 9c40b3fb01ce541c1078ba98a2c475bf528edd4f61fecd4c0e90db52235f07f8",
"--> 9c40b3fb01ce",
"[3/4] STEP 11/15: RUN $PYCMD -m pip install --no-cache-dir bindep pyyaml packaging",
"--> Using cache e1daa3e367b50736d9dda803d98a67980e0dfd546fe989a3f035069523396935",
"--> e1daa3e367b5",
"[3/4] STEP 12/15: COPY --from=galaxy /usr/share/ansible /usr/share/ansible",
"--> Using cache cd090de4e8cb51be199f6b68b523fb34b088d4fdd85da90e8a74503bce2dfe3b",
"--> cd090de4e8cb",
"[3/4] STEP 13/15: COPY _build/requirements.txt requirements.txt",
"--> Using cache 9b567650276f331d6604ba673a0c0f3091463524b455e222051bb08b05e2d55a",
"--> 9b567650276f",
"[3/4] STEP 14/15: RUN $PYCMD /output/scripts/introspect.py introspect --user-pip=requirements.txt --write-bindep=/tmp/src/bindep.txt --write-pip=/tmp/src/requirements.txt",
"--> Using cache 82cb9b2eaf942b6a9ea035bba91bdb6b60a42e93975290858350f8e1fc89e148",
"--> 82cb9b2eaf94",
"[3/4] STEP 15/15: RUN /output/scripts/assemble",
"--> Using cache adcd51bb19cff970b99055e3101e371947f200098da630a509fa9f66a68b0a85",
"--> adcd51bb19cf",
"[4/4] STEP 1/23: FROM 0a0b1fa78d912408b7f77607d2eaee88723f0caa28e0520b08ea16aee5a23e67 AS final",
"[4/4] STEP 2/23: ENV PIP_BREAK_SYSTEM_PACKAGES=1",
"--> Using cache ff340d81562e2ffdae5abbc0c6d064afc864368c974cd5d3fecb42c10da84f3a",
"--> ff340d81562e",
"[4/4] STEP 3/23: ARG EE_BASE_IMAGE",
"--> Using cache 4b06fadb123cc0b17cb8eb9673e1801f7826a94dff384ae8f90b4b8cd70ad656",
"--> 4b06fadb123c",
"[4/4] STEP 4/23: ARG PYCMD",
"--> Using cache ddfa8a6d538a85d94cecc0aeeecbabe7425c09b9d06de9c20606bc40a5e2b5ea",
"--> ddfa8a6d538a",
"[4/4] STEP 5/23: ARG PKGMGR_PRESERVE_CACHE",
"--> Using cache 538de1006d84a6b373b222b4f9fc9b29d7d7bc0edae32f083a2b3f0e8f125808",
"--> 538de1006d84",
"[4/4] STEP 6/23: ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS",
"--> Using cache 569784ac770c8b53847783b88abfdb33a4b6feed3a131f703c027fcf9f7caa1f",
"--> 569784ac770c",
"[4/4] STEP 7/23: ARG ANSIBLE_GALAXY_CLI_ROLE_OPTS",
"--> Using cache 917bfe1fdf1ee43278db619ceb665f2ea19b4025d22aa1ae7206ec53f6f26cbb",
"--> 917bfe1fdf1e",
"[4/4] STEP 8/23: ARG ANSIBLE_INSTALL_REFS",
"--> Using cache 31be0ff79fac48a7f52872d83d4b839a671b08c16fc192cbef023437246303c8",
"--> 31be0ff79fac",
"[4/4] STEP 9/23: ARG PKGMGR",
"--> Using cache 687ba85a1a82e656d8ace308a7f797936251e7804709a788d6b603c7379cf411",
"--> 687ba85a1a82",
"[4/4] STEP 10/23: RUN /output/scripts/check_ansible $PYCMD",
"--> Using cache f3f396ffb58f325dad6d36775f90ad96b24fa32a3c6d2cfa7f9bfe2fbd373033",
"--> f3f396ffb58f",
"[4/4] STEP 11/23: COPY --from=galaxy /usr/share/ansible /usr/share/ansible",
"--> Using cache 7b081e411831bb0f15b9b3c38dc2c1702f22f686c14e5be7db2af7f51fe659cb",
"--> 7b081e411831",
"[4/4] STEP 12/23: COPY --from=builder /output/ /output/",
"--> Using cache 0e69252d7f0207f3bbf41b77f2033b1a22a5d68391bacf5c62a0bce5decfc1cf",
"--> 0e69252d7f02",
"[4/4] STEP 13/23: RUN /output/scripts/install-from-bindep && rm -rf /output/wheels",
"--> Using cache 214d87c0bd23471bec7f9409351114ea328e992e189dd3f6274796003e32f954",
"--> 214d87c0bd23",
"[4/4] STEP 14/23: RUN chmod ug+rw /etc/passwd",
"--> Using cache bed65abbf89d6005f94897b90d61fadc2f4e52313bbd4690cb26199e93c25778",
"--> bed65abbf89d",
"[4/4] STEP 15/23: RUN mkdir -p /runner && chgrp 0 /runner && chmod -R ug+rwx /runner",
"--> Using cache c0b7f242d795d249ece482c2a22c913bbf2f99690ccec8fc0588 90F0 65bbe1b2125c",
"--> c0b7f242d795",
"[4/4] STEP 16/23: WORKDIR /runner",
"--> Using cache 01c0b5b757d5774ab03641a999fa94a6fcfd263fc9ba9485ac6bbf7c482fca89",
"--> 01c0b5b757d5",
"[4/4] STEP 17/23: RUN $PYCMD -m pip install --no-cache-dir 'dumb-init==1.2.5'",
"--> Using cache 4e8749f3c12c956a46e198d2b45cb2db754cf2464adcb463735fcc5f007cc563",
"--> 4e8749f3c12c",
"[4/4] STEP 18/23: RUN echo \"Hello from EE\"",
"--> Using cache f526ae849437dbaa7e20cbdd7cb44e1f9eef2b3674c7b63ea95e729abbe52f6f",
"--> f526ae849437",
"[4/4] STEP 19/23: RUN rm -rf /output",
"--> Using cache cad677ccfc9bf1777fa91389da7398fd10501dfe886cd39b0dc238dc32bec975",
"--> cad677ccfc9b",
"[4/4] STEP 20/23: LABEL ansible-execution-environment=true",
"--> Using cache 96f0f408cfbca92fa3b6a0525eccf1eba8c9b5775982eef1d5e83b2efaf234ff",
"--> 96f0f408cfbc",
"[4/4] STEP 21/23: USER 1000",
"--> Using cache 3179ca9e7d1ab7cc70e6276eed93d8a2d05bec4a805c43fe2ee6101576a9060f",
"--> 3179ca9e7d1a",
"[4/4] STEP 22/23: ENTRYPOINT [\"/opt/builder/bin/entrypoint\", \"dumb-init\"]",
"--> Using cache c2958f1e47ed5fdf07ef0c06740bde5dc1dab97b37102d8c39ebb3af79462e3f",
"--> c2958f1e47ed",
"[4/4] STEP 23/23: CMD [\"bash\"]",
"--> Using cache 0d0e4f75cd53b570d3087fd96567df800dc2c96f33bce57ae5dfae340c706c8f",
"[4/4] COMMIT test_ee",
"--> 0d0e4f75cd53",
"Successfully tagged localhost/test_ee:latest",
"0d0e4f75cd53b570d3087fd96567df800dc2c96f33bce57ae5dfae340c706c8f",
"Complete! The build context can be found at: /home/user/github/ansible-navigator/context",
"(venv) bash$"
]
"output": []
}
Loading
0