You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ENV_VARIABLES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,3 +153,4 @@
153
153
| SE_VIDEO_CRF ||||
154
154
| SE_VIDEO_MAXRATE ||||
155
155
| SE_NODE_DELETE_SESSION_ON_UI | true | Enable capability to support deleting session on Grid UI | --delete-session-on-ui |
156
+
| SE_UPDATE_CHROME_COMPONENTS || Applicable for node-chrome, standalone-chrome (arch linux/amd64). Update the latest version of Chrome and ChromeDriver at the beginning of the container startup. Read more: [#2872](https://github.com/SeleniumHQ/docker-selenium/pull/2872)||
Copy file name to clipboardExpand all lines: NodeBase/start-selenium-node.sh
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
#!/bin/bash
2
2
3
+
# Check if Chrome components update is enabled
4
+
if [ "${SE_UPDATE_CHROME_COMPONENTS}"="true" ] && [ -f /opt/bin/update-chrome-components.sh ];then
5
+
echo"Chrome components update enabled, checking for updates..."
6
+
echo"Note that after the container gets restarted, updated binaries will be lost unless you call the update script within the build container process."
@@ -44,30 +34,9 @@ RUN /opt/bin/wrap_chrome_binary
44
34
# Latest released version will be used by default
45
35
#============================================
46
36
ARG CHROME_DRIVER_VERSION
47
-
RUN DRIVER_ARCH=$(if [ "$(dpkg --print-architecture)" = "amd64" ]; then echo "linux64"; else echo "linux-aarch64"; fi) \
48
-
&& if [ ! -z "$CHROME_DRIVER_VERSION" ]; \
49
-
then CHROME_DRIVER_URL=https://storage.googleapis.com/chrome-for-testing-public/$CHROME_DRIVER_VERSION/${DRIVER_ARCH}/chromedriver-${DRIVER_ARCH}.zip ; \
50
-
else CHROME_MAJOR_VERSION=$(google-chrome --version | sed -E "s/.* ([0-9]+)(\.[0-9]+){3}.*/\1/") \
51
-
&& if [ $CHROME_MAJOR_VERSION -lt 115 ]; then \
52
-
echo "Geting ChromeDriver latest version from https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION}" \
53
-
&& CHROME_DRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION} | sed 's/\r$//') \
Copy file name to clipboardExpand all lines: Standalone/start-selenium-standalone.sh
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
#
3
3
# IMPORTANT: Change this file only in directory Standalone!
4
4
5
+
# Check if Chrome components update is enabled
6
+
if [ "${SE_UPDATE_CHROME_COMPONENTS}"="true" ] && [ -f /opt/bin/update-chrome-components.sh ];then
7
+
echo"Chrome components update enabled, checking for updates..."
8
+
echo"Note that after the container gets restarted, updated binaries will be lost unless you call the update script within the build container process."
0 commit comments