mirror of
https://github.com/jitsi/docker-jitsi-meet.git
synced 2026-04-02 15:51:05 +02:00
jibri: simplify ChromeDriver download
This commit is contained in:
parent
fd1c308b49
commit
a76b1f4b4a
@ -11,9 +11,8 @@ LABEL org.opencontainers.image.documentation="https://jitsi.github.io/handbook/"
|
||||
ARG TARGETPLATFORM
|
||||
ARG USE_CHROMIUM=0
|
||||
#ARG CHROME_RELEASE=latest
|
||||
#ARG CHROMEDRIVER_MAJOR_RELEASE=latest
|
||||
# https://googlechromelabs.github.io/chrome-for-testing/
|
||||
ARG CHROME_RELEASE=116.0.5845.96
|
||||
ARG CHROMEDRIVER_MAJOR_RELEASE=116
|
||||
|
||||
COPY rootfs/ /
|
||||
|
||||
|
||||
@ -21,10 +21,13 @@ else
|
||||
|
||||
google-chrome --version
|
||||
|
||||
if [ "${CHROMEDRIVER_MAJOR_RELEASE}" = "latest" ]; then
|
||||
CHROMEDRIVER_RELEASE="$(curl -4Ls https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE)"
|
||||
BASE_URL=https://googlechromelabs.github.io/chrome-for-testing
|
||||
|
||||
if [ "${CHROME_RELEASE}" = "latest" ]; then
|
||||
CHROMEDRIVER_RELEASE="$(curl -4Ls ${BASE_URL}/LATEST_RELEASE_STABLE)"
|
||||
else
|
||||
CHROMEDRIVER_RELEASE="$(curl -4Ls https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE})"
|
||||
CHROMEDRIVER_MAJOR_RELEASE=$(echo $CHROME_RELEASE | cut -d. -f1)
|
||||
CHROMEDRIVER_RELEASE="$(curl -4Ls ${BASE_URL}/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE})"
|
||||
fi
|
||||
|
||||
CHROMEDRIVER_ZIP="/tmp/chromedriver_linux64.zip"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user