Skip to content

Commit cccf8a7

Browse files
authored
Pinning Chrome version (#10805)
1 parent 0a0d101 commit cccf8a7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Dockerfile.integration-tests-debian

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ RUN pip install --no-cache-dir selenium==4.9.0 requests
2525

2626
# Install the latest Google Chrome stable release
2727
WORKDIR /opt/chrome
28+
29+
# TODO: figure out whatever fix is necessary to use Chrome >= 128 and put this back in the RUN below so we stay
30+
# up-to-date
31+
# chrome_url=$(curl https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r '.channels[] | select(.channel == "Stable") | .downloads.chrome[] | select(.platform == "linux64").url') && \
32+
2833
RUN \
29-
chrome_url=$(curl https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r '.channels[] | select(.channel == "Stable") | .downloads.chrome[] | select(.platform == "linux64").url') && \
34+
chrome_url="https://storage.googleapis.com/chrome-for-testing-public/127.0.6533.119/linux64/chrome-linux64.zip" && \
3035
wget $chrome_url && \
3136
unzip chrome-linux64.zip && \
3237
rm -rf chrome-linux64.zip && \
@@ -49,8 +54,12 @@ RUN apt-get install -y libxi6 libgconf-2-4 jq libjq1 libonig5 libxkbcommon0 libx
4954

5055
# Installing the latest stable Google Chrome driver release
5156
WORKDIR /opt/chrome-driver
57+
# TODO: figure out whatever fix is necessary to use Chrome >= 128 and put this back in the RUN below so we stay
58+
# up-to-date
59+
# chromedriver_url=$(curl https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r '.channels[] | select(.channel == "Stable") | .downloads.chromedriver[] | select(.platform == "linux64").url') && \
60+
5261
RUN \
53-
chromedriver_url=$(curl https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r '.channels[] | select(.channel == "Stable") | .downloads.chromedriver[] | select(.platform == "linux64").url') && \
62+
chromedriver_url="https://storage.googleapis.com/chrome-for-testing-public/127.0.6533.119/linux64/chromedriver-linux64.zip" && \
5463
wget $chromedriver_url && \
5564
unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver && \
5665
rm -rf chromedriver-linux64.zip && \

0 commit comments

Comments
 (0)