@@ -622,17 +622,18 @@ RUN wget --no-verbose -O geckodriver.tar.gz \
622622 && chown seluser:seluser /usr/bin/geckodriver \
623623 && rm geckodriver.tar.gz
624624
625+ COPY bin/fail /usr/bin/
625626# ===============
626627# Google Chrome
627628# ===============
628629# TODO: Use Google fingerprint to verify downloads
629630# https://www.google.de/linuxrepositories/
630- ENV CHROME_VERSION_TRIGGER ="62.0.3202.62" \
631- CHROME_URL="https://dl.google.com/linux/direct" \
631+ ARG EXPECTED_CHROME_VERSION ="62.0.3202.75"
632+ ENV CHROME_URL="https://dl.google.com/linux/direct" \
632633 CHROME_BASE_DEB_PATH="/home/seluser/chrome-deb/google-chrome" \
633634 GREP_ONLY_NUMS_VER="[0-9.]{2,20}"
634635
635- LABEL selenium_chrome_version "62.0.3202.62 "
636+ LABEL selenium_chrome_version "${EXPECTED_CHROME_VERSION} "
636637
637638# Layer size: huge: 196.3 MB
638639RUN apt-get -qqy update \
@@ -647,7 +648,8 @@ RUN apt-get -qqy update \
647648 && rm -rf /var/lib/apt/lists/* \
648649 && apt-get -qyy clean \
649650 && export CH_STABLE_VER=$(/usr/bin/google-chrome-stable --version | grep -iEo "${GREP_ONLY_NUMS_VER}" ) \
650- && echo "${CH_STABLE_VER}"
651+ && echo "CH_STABLE_VER:'${CH_STABLE_VER}' vs EXPECTED_CHROME_VERSION:'${EXPECTED_CHROME_VERSION}'" \
652+ && [ "${CH_STABLE_VER}" = "${EXPECTED_CHROME_VERSION}" ] || fail
651653# We have a wrapper for /opt/google/chrome/google-chrome
652654RUN mv /opt/google/chrome/google-chrome /opt/google/chrome/google-chrome-base
653655COPY selenium-node-chrome/opt /opt
0 commit comments