From cd84a7fa241875efe4ffaf764050336b3c3899b3 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 16 Mar 2020 14:28:10 +0100 Subject: [PATCH] updated Dockerfile --- Dockerfile | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6f40294..b38be16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,24 @@ FROM archlinux/base ENV CHROMEDRIVER_VERSION="80.0.3987.106" -RUN pacman -Syu --noconfirm --needed python python-pip wget tar chromium \ +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 + +ADD https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip ./chromedriver.zip + + +RUN pacman -Syu --noconfirm --needed python python-pip chromium \ && pacman -Scc \ && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \ - && pip install robotframework robotframework-seleniumlibrary \ - && wget -qO- https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip | bsdtar -xvf - \ - && chmod -v +x chromedriver \ + +RUN pip install robotframework robotframework-seleniumlibrary \ + && bsdtar xfv ./chromedriver.zip && rm -v ./chromedriver.zip \ + && chmod -v +x ./chromedriver \ && mkdir -pv /usr/local/bin \ - && mv -v chromedriver /usr/local/bin/ + && mv -v ./chromedriver /usr/local/bin/