Skip to content

Commit

Permalink
Merge pull request #788 from fao89/ansible-dev-tools
Browse files Browse the repository at this point in the history
Replace creator-ee with ansible-dev-tools image
  • Loading branch information
openshift-merge-bot[bot] authored Oct 30, 2024
2 parents 31a2529 + 536e0a4 commit c9bd6f6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
22 changes: 9 additions & 13 deletions openstack_ansibleee/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/ansible/creator-ee:v0.21.0 as builder
FROM ghcr.io/ansible/community-ansible-dev-tools:v24.10.0 as builder

ARG REMOTE_SOURCE=.
ARG REMOTE_SOURCE_DIR=/var/tmp/edpm-ansible
Expand All @@ -8,20 +8,16 @@ RUN cd $REMOTE_SOURCE_DIR && \
ansible-galaxy collection install -U --timeout 120 -r requirements.yml --collections-path "/usr/share/ansible/collections" && \
ansible-galaxy collection install -U $REMOTE_SOURCE_DIR --collections-path "/usr/share/ansible/collections"

FROM quay.io/ansible/creator-ee:v0.21.0 as runner
FROM ghcr.io/ansible/community-ansible-dev-tools:v24.10.0 as runner

RUN \
microdnf install -y \
# we are installing ansible.posix with rsync, but we aren't installing rsync itself
rsync
COPY --from=builder /usr/share/ansible /usr/share/ansible

COPY $REMOTE_SOURCE/openstack_ansibleee/settings /runner/env/settings
RUN chmod 775 /runner/env/settings
COPY $REMOTE_SOURCE/openstack_ansibleee/edpm_entrypoint.sh /bin/edpm_entrypoint
RUN sed -i '1d' /bin/entrypoint
RUN cat /bin/entrypoint >> /bin/edpm_entrypoint
RUN chmod +x /bin/edpm_entrypoint
COPY $REMOTE_SOURCE/openstack_ansibleee/edpm_entrypoint.sh /opt/builder/bin/edpm_entrypoint

RUN sed '1d' /opt/builder/bin/entrypoint >> /opt/builder/bin/edpm_entrypoint
RUN chmod 775 /runner/env/settings && chmod +x /opt/builder/bin/edpm_entrypoint && chmod ug+rw /etc/passwd

ENV EDPM_SYSTEMROLES='fedora.linux_system_roles'
WORKDIR /runner
ENTRYPOINT ["edpm_entrypoint"]
LABEL ansible-execution-environment=true
ENTRYPOINT ["/opt/builder/bin/edpm_entrypoint", "dumb-init"]
2 changes: 1 addition & 1 deletion plugins/filter/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python
# Copyright 2019 Red Hat, Inc.
# All Rights Reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/edpm_nftables_from_files.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/python3
# Copyright 2021 Red Hat, Inc.
# All Rights Reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/edpm_nftables_snippet.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/python3
# Copyright 2021 Red Hat, Inc.
# All Rights Reserved.
#
Expand Down

0 comments on commit c9bd6f6

Please sign in to comment.