-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from HichamMourad/main
move to v3 exec env file
- Loading branch information
Showing
3 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[galaxy] | ||
server_list = automation_hub, release_galaxy | ||
|
||
[galaxy_server.automation_hub] | ||
url=https://console.redhat.com/api/automation-hub/content/published/ | ||
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token | ||
|
||
[galaxy_server.release_galaxy] | ||
url=https://galaxy.ansible.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
--- | ||
version: 1 | ||
|
||
build_arg_defaults: | ||
EE_BASE_IMAGE: 'registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8' | ||
version: 3 | ||
images: | ||
base_image: | ||
name: registry.redhat.io/ansible-automation-platform-25/ee-supported-rhel8:latest | ||
|
||
dependencies: | ||
galaxy: requirements.yml | ||
python: requirements.txt | ||
system: bindep.txt | ||
|
||
additional_build_files: | ||
# Can be used to resolve collections from private automation hub | ||
- src: ansible.cfg | ||
dest: configs | ||
|
||
options: | ||
package_manager_path: /usr/bin/microdnf | ||
|
||
additional_build_steps: | ||
prepend: | | ||
RUN pip3 install --upgrade pip setuptools | ||
append: | ||
- RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "/awscliv2.zip" | ||
- RUN unzip /awscliv2.zip -d /aws | ||
- RUN /aws/aws/install | ||
- RUN curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm" -o "/session-manager-plugin.rpm" | ||
- RUN dnf install -y /session-manager-plugin.rpm | ||
prepend_base: | ||
- RUN $PYCMD -m pip install --upgrade pip setuptools | ||
prepend_galaxy: | ||
# Add custom ansible.cfg which defines collection install sources | ||
- ADD _build/configs/ansible.cfg /etc/ansible/ansible.cfg | ||
# AH_TOKEN is passed into the build command using a --build-arg | ||
# accept this as an ARG during this stage to reference later | ||
- ARG AH_TOKEN | ||
# Use the above ARG to define an environment variable holding | ||
# the token for resolving private collections | ||
- ENV ANSIBLE_GALAXY_SERVER_AUTOMATION_HUB_TOKEN=$AH_TOKEN |
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