From 50a38c8d2d9caced0b8e803ab81c8211ccb20ae9 Mon Sep 17 00:00:00 2001 From: "Jean-Paul R. Soucy" Date: Wed, 16 Aug 2023 21:56:08 -0400 Subject: [PATCH] Update Docker file for ccodwg-archive - Update version selection for Chromedriver (#38) --- docker/ccodwg-archive/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/ccodwg-archive/Dockerfile b/docker/ccodwg-archive/Dockerfile index 014b72a..c6b9087 100644 --- a/docker/ccodwg-archive/Dockerfile +++ b/docker/ccodwg-archive/Dockerfile @@ -11,8 +11,8 @@ RUN apt-get -y update && apt-get install -y \ unzip # download and unzip Chromedriver -RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip -RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ +RUN export URL=$(python -c "import urllib.request, json; response = urllib.request.urlopen('https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json'); data = json.loads(response.read()); print(data['channels']['Stable']['downloads']['chromedriver'][0]['url'])") && wget -O /tmp/chromedriver.zip $URL +RUN unzip -j /tmp/chromedriver.zip chromedriver-linux64/chromedriver -d /usr/local/bin/ # set display port environmental variable ENV DISPLAY=:99