2021-04-23 00:41:43 +02:00
|
|
|
# syntax=docker/dockerfile:1.2
|
|
|
|
# refs:
|
|
|
|
# https://docs.docker.com/develop/develop-images/build_enhancements/#overriding-default-frontends
|
|
|
|
# https://pythonspeed.com/articles/docker-buildkit/
|
|
|
|
|
|
|
|
FROM immawanderer/archlinux:linux-amd64
|
2020-03-05 00:25:26 +01:00
|
|
|
|
2021-04-23 00:54:22 +02:00
|
|
|
ENV CHROMEDRIVER_VERSION="90.0.4430.24"
|
2020-05-10 17:13:15 +02:00
|
|
|
ENV SCREEN_MAIN_DEPTH=24
|
|
|
|
ENV SCREEN_SUB_DEPTH=32
|
2020-03-11 20:00:47 +01:00
|
|
|
|
2020-03-16 14:28:10 +01:00
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
|
|
|
|
LABEL description="Docker image for running tests using robot framework."
|
|
|
|
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
2020-11-26 15:18:50 +01:00
|
|
|
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux-rf.git" \
|
2020-03-17 04:42:05 +01:00
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.license=GPL-3.0
|
2020-03-16 14:28:10 +01:00
|
|
|
|
2020-03-16 15:52:37 +01:00
|
|
|
ADD https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip /tmp/chromedriver.zip
|
2020-03-16 14:28:10 +01:00
|
|
|
|
2020-03-17 03:03:03 +01:00
|
|
|
WORKDIR /tmp/
|
2020-05-28 15:48:36 +02:00
|
|
|
RUN pacman -Syu --noconfirm --needed python python-pip chromium wget vim findutils \
|
2021-04-23 00:41:43 +02:00
|
|
|
&& pip install --no-cache-dir robotframework robotframework-seleniumlibrary b2 \
|
2020-03-16 15:52:37 +01:00
|
|
|
&& bsdtar xfv /tmp/chromedriver.zip && rm -v /tmp/chromedriver.zip \
|
|
|
|
&& chmod -v +x /tmp/chromedriver \
|
2020-03-04 03:23:36 +01:00
|
|
|
&& mkdir -pv /usr/local/bin \
|
2020-05-11 03:01:38 +02:00
|
|
|
&& mv -v /tmp/chromedriver /usr/local/bin/
|
|
|
|
RUN pacman -Scc && rm -rf /var/cache/pacman/* /var/lib/pacman/sync/* \
|
|
|
|
&& rm -rf /usr/share/i18n/* ; rm -rf /usr/include/* ; \
|
|
|
|
find /. -name "*~" -type f -delete; \
|
2020-05-28 21:02:53 +02:00
|
|
|
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete; \
|
|
|
|
mkdir -pv /testing
|
2020-03-16 16:17:14 +01:00
|
|
|
WORKDIR /
|