# 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 quay.rdoproject.org/podified-master-centos10/openstack-os:d136cbd30345d0c918569def6d4766d4 ENV USE_EXTERNAL_FILES=true USER root RUN bash /usr/local/bin/uid_gid_manage horizontest RUN dnf -y install git python3-pip xorg-x11-server-Xvfb firefox && dnf clean all && rm -rf /var/cache/dnf RUN python3 -m pip install --upgrade pip RUN pip install pytest==7.3.2 pytest-django pytest-html Django==2.2.28 horizon selenium==3.141.0 testtools xvfbwrapper junit2html urllib3==1.26.19 RUN cp /usr/share/tcib/container-images/tcib/base/os/horizontest/horizontest_sudoers /etc/sudoers.d/horizontest_sudoers RUN chmod 440 /etc/sudoers.d/horizontest_sudoers RUN mkdir -p /var/lib/horizontest/external_files RUN chown -R horizontest.horizontest /var/lib/horizontest RUN curl -s -L https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz | tar -zxvf - -C /usr/local/bin/ RUN curl -OL http://download.cirros-cloud.net/0.6.2/cirros-0.6.2-x86_64-disk.img -o /usr/local/share/cirros-0.6.2-x86_64-disk RUN cp /usr/share/tcib/container-images/tcib/base/os/horizontest/run_horizontest.sh /usr/local/bin/run_horizontest.sh RUN chmod +x /usr/local/bin/run_horizontest.sh ENTRYPOINT ["/usr/local/bin/run_horizontest.sh"] USER horizontest