File Dockerfile of Package hawk_test
# Defines the tag for OBS and build script builds:
#!BuildTag: hawk_test
# Use the repositories defined in OBS for installing packages
#!UseOBSRepositories
FROM opensuse/leap:15.4
RUN zypper -n install -y --no-recommends \
MozillaFirefox \
MozillaFirefox-branding-upstream \
file \
patch \
python3-paramiko \
python3-PyVirtualDisplay \
python3-selenium \
xauth \
xdpyinfo \
xorg-x11-fonts \
xorg-x11-Xvnc && \
zypper -n clean -a
COPY geckodriver /usr/local/bin/
RUN chmod +x /usr/local/bin/geckodriver
RUN useradd -l -m -d /test test
COPY *.py /
#Add patches to the head of master branch
COPY workaround_for_12sp5_click_issue.patch /
RUN cd / && /usr/bin/patch < /workaround_for_12sp5_click_issue.patch && cd -
ENV PYTHONPATH /
ENV PYTHONUNBUFFERED 1
ENV DBUS_SESSION_BUS_ADDRESS /dev/null
WORKDIR /test
USER test
ENTRYPOINT ["/usr/bin/python3", "/hawk_test.py"]