2020-03-05 00:25:26 +01:00
|
|
|
FROM archlinux/base
|
|
|
|
|
2020-03-11 20:00:47 +01:00
|
|
|
ENV CHROMEDRIVER_VERSION="80.0.3987.106"
|
|
|
|
|
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 \
|
|
|
|
org.label-schema.vcs-url="https://github.com/wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf/docker-archlinux-rf.git" \
|
|
|
|
org.label-schema.vcs-ref=$VCS_REF
|
|
|
|
|
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-16 16:17:14 +01:00
|
|
|
WORKDIR /tmp
|
2020-03-16 14:28:10 +01:00
|
|
|
|
|
|
|
RUN pacman -Syu --noconfirm --needed python python-pip chromium \
|
2020-03-04 03:23:36 +01:00
|
|
|
&& pacman -Scc \
|
|
|
|
&& rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \
|
2020-03-16 14:28:10 +01:00
|
|
|
|
|
|
|
RUN pip install robotframework robotframework-seleniumlibrary \
|
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-03-16 16:59:25 +01:00
|
|
|
&& mv -v /tmp/chromedriver /usr/local/bin/ && \
|
2020-03-16 15:52:37 +01:00
|
|
|
|
2020-03-16 16:59:25 +01:00
|
|
|
# improved clean-up thanks to this: https://github.com/yantis/docker-archlinux-tiny
|
|
|
|
pacman --noconfirm -Runs \
|
2020-03-16 15:52:37 +01:00
|
|
|
binutils gcc make autoconf \
|
|
|
|
gzip sudo gettext less sysfsutils \
|
|
|
|
which iproute2 procps-ng iputils \
|
|
|
|
&& pacman --noconfirm -R \
|
|
|
|
util-linux fakeroot shadow \
|
|
|
|
&& rm -rv /usr/share/info/* \
|
|
|
|
&& rm -rv /usr/share/man/* \
|
|
|
|
&& rm -rv /usr/share/doc/* \
|
|
|
|
&& rm -rv /usr/share/zoneinfo/* \
|
|
|
|
&& rm -rv /usr/share/i18n/* \
|
|
|
|
&& find /. -name "*~" -type f -delete \
|
|
|
|
&& find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete \
|
|
|
|
&& rm -rv /tmp/* \
|
|
|
|
&& rm -rv /usr/include/* \
|
|
|
|
&& pacman --noconfirm -Runs tar gawk \
|
|
|
|
&& pacman -Scc \
|
|
|
|
&& rm -rv /var/cache/pacman/* /var/lib/pacman/sync/* \
|
|
|
|
|
2020-03-16 16:17:14 +01:00
|
|
|
WORKDIR /
|