mirror of
https://github.com/linuxserver/docker-ci.git
synced 2026-02-20 02:53:44 +08:00
Merge pull request #71 from linuxserver/70-bug-wrong-chrome-driver-version
Download the same chromedriver version as the installed chrome version.
This commit is contained in:
commit
edf88e552d
@ -30,8 +30,13 @@ RUN \
|
||||
xserver-xephyr \
|
||||
xvfb && \
|
||||
echo "**** install chrome driver ****" && \
|
||||
CHROME_RELEASE=$(curl -sLk https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE) && \
|
||||
echo "Retrieving Chrome driver version ${CHROME_RELEASE}" && \
|
||||
CHROME_VERSION=$(google-chrome --version | awk '{print $3}') && \
|
||||
CHROME_MAJOR=${CHROME_VERSION%%.*} && \
|
||||
CHROME_RELEASE=$(curl -fsSLk "https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_${CHROME_MAJOR}" || true) && \
|
||||
if [ -z "${CHROME_RELEASE}" ]; then \
|
||||
CHROME_RELEASE=$(curl -fsSLk https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE); \
|
||||
fi && \
|
||||
echo "Installed Chrome ${CHROME_VERSION}; retrieving ChromeDriver ${CHROME_RELEASE}" && \
|
||||
curl -sk -o \
|
||||
/tmp/chrome.zip -L \
|
||||
"https://storage.googleapis.com/chrome-for-testing-public/${CHROME_RELEASE}/linux64/chromedriver-linux64.zip" && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user