Skip to content

Commit

Permalink
Add new requirements and collections to tealc-ee ansible executor (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
kornys authored Oct 23, 2023
1 parent fe965b9 commit f6fdf63
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion install/collections/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
collections:
- name: kubernetes.core
- name: kubernetes.core
- name: community.hashi_vault
4 changes: 3 additions & 1 deletion tealc-ee/context/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ FROM $EE_BUILDER_IMAGE as builder

COPY --from=galaxy /usr/share/ansible /usr/share/ansible

ADD _build/requirements.txt requirements.txt
ADD _build/bindep.txt bindep.txt
RUN ansible-builder introspect --sanitize --user-bindep=bindep.txt --write-bindep=/tmp/src/bindep.txt --write-pip=/tmp/src/requirements.txt
RUN ansible-builder introspect --sanitize --user-pip=requirements.txt --user-bindep=bindep.txt --write-bindep=/tmp/src/bindep.txt --write-pip=/tmp/src/requirements.txt
RUN assemble

FROM $EE_BASE_IMAGE
Expand All @@ -30,3 +31,4 @@ RUN /output/install-from-bindep && rm -rf /output/wheels
RUN echo This is a post-install command!
RUN curl https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/openshift-client-linux.tar.gz -o openshift-client-linux.tar.gz && tar xzf openshift-client-linux.tar.gz && rm -f openshift-client-linux.tar.gz && mv oc /usr/bin/oc && mv kubectl /usr/bin/kubectl
RUN /usr/bin/dnf install -y https://kojipkgs.fedoraproject.org//packages/git-crypt/0.6.0/7.el8/x86_64/git-crypt-0.6.0-7.el8.x86_64.rpm
RUN curl -O https://mirror.openshift.com/pub/rhacs/assets/4.2.0/bin/Linux/roxctl && chmod +x roxctl && mv roxctl /usr/bin/roxctl
2 changes: 2 additions & 0 deletions tealc-ee/context/_build/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python-openstackclient
awscli
3 changes: 2 additions & 1 deletion tealc-ee/context/_build/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
collections:
- name: kubernetes.core
- name: kubernetes.core
- name: community.hashi_vault
4 changes: 3 additions & 1 deletion tealc-ee/execution-environment.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
version: 1
version: 3

dependencies:
galaxy: ../install/collections/requirements.yml
system: bindep.txt
python: requirements.txt

additional_build_steps:
prepend: |
Expand All @@ -11,3 +12,4 @@ additional_build_steps:
- RUN echo This is a post-install command!
- RUN curl https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/openshift-client-linux.tar.gz -o openshift-client-linux.tar.gz && tar xzf openshift-client-linux.tar.gz && rm -f openshift-client-linux.tar.gz && mv oc /usr/bin/oc && mv kubectl /usr/bin/kubectl
- RUN /usr/bin/dnf install -y https://kojipkgs.fedoraproject.org//packages/git-crypt/0.6.0/7.el8/x86_64/git-crypt-0.6.0-7.el8.x86_64.rpm
- RUN curl -O https://mirror.openshift.com/pub/rhacs/assets/4.2.0/bin/Linux/roxctl && chmod +x roxctl && mv roxctl /usr/bin/roxctl
2 changes: 2 additions & 0 deletions tealc-ee/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python-openstackclient
awscli

0 comments on commit f6fdf63

Please sign in to comment.