From 80b6e91584cddfd2f86e3d8adaeb87d238533902 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Thu, 8 Sep 2022 10:25:53 +0300 Subject: [PATCH] Disabling component updates for Chrome (fixes #544) --- static/chrome/Dockerfile | 5 ++++- static/chrome/component_update.json | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 static/chrome/component_update.json diff --git a/static/chrome/Dockerfile b/static/chrome/Dockerfile index 7d4b58823..1b801a7c3 100644 --- a/static/chrome/Dockerfile +++ b/static/chrome/Dockerfile @@ -15,10 +15,13 @@ FROM selenoid/dev_chrome:$VERSION ENV DBUS_SESSION_BUS_ADDRESS=/dev/null COPY --from=go /devtools/devtools /usr/bin/ +COPY component_update.json /etc/opt/chrome/policies/managed/ COPY chromedriver /usr/bin/ COPY entrypoint.sh / -RUN chmod +x /usr/bin/chromedriver +RUN \ + chmod +x /usr/bin/chromedriver && \ + chown -R selenium:nogroup /etc/opt/chrome/policies/managed/ USER selenium EXPOSE 4444 diff --git a/static/chrome/component_update.json b/static/chrome/component_update.json new file mode 100644 index 000000000..5968826e5 --- /dev/null +++ b/static/chrome/component_update.json @@ -0,0 +1,3 @@ +{ + "ComponentUpdatesEnabled": false +}