Skip to content

Commit

Permalink
Update Docker file for ccodwg-archive
Browse files Browse the repository at this point in the history
- Update version selection for Chromedriver (#38)
  • Loading branch information
jeanpaulrsoucy committed Aug 17, 2023
1 parent 5b470de commit 3ce15f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/ccodwg-archive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ 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 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 /tmp/chromedriver.zip chromedriver -d /usr/local/bin/

# set display port environmental variable
Expand Down

0 comments on commit 3ce15f7

Please sign in to comment.