# Copyright 2020 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. FROM 38.102.83.180:5001/podified-master-centos10/openstack-base:watcher_latest ENV USE_EXTERNAL_FILES=true USER root RUN bash /usr/local/bin/uid_gid_manage ansible RUN dnf -y install gcc git python3 python3-devel python3-pip python3-setuptools libffi-devel rsync && dnf clean all && rm -rf /var/cache/dnf RUN pip3 install ansible openstacksdk RUN cp /usr/share/tcib/container-images/tcib/base/ansible-tests/ansible_sudoers /etc/sudoers.d/ansible_sudoers RUN chmod 440 /etc/sudoers.d/ansible_sudoers RUN cp /usr/share/tcib/container-images/tcib/base/ansible-tests/run_ansible.sh /usr/local/bin/run_ansible.sh RUN chmod +x /usr/local/bin/run_ansible.sh RUN chown -R ansible:ansible /var/lib/ansible ENTRYPOINT ["/usr/local/bin/run_ansible.sh"] USER ansible