From 1aa492c02c6d8cc3dab8c9333fc48cce77b6e027 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Wed, 7 Apr 2021 18:45:25 +0200 Subject: [PATCH] Introduce an alias for launching chrome from root in compose-web/Docker --- ci/docker/compose-web/Dockerfile | 3 +++ ci/docker/compose-web/chrome-no-sandbox | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 ci/docker/compose-web/chrome-no-sandbox diff --git a/ci/docker/compose-web/Dockerfile b/ci/docker/compose-web/Dockerfile index 0632c17612..903a8fb880 100644 --- a/ci/docker/compose-web/Dockerfile +++ b/ci/docker/compose-web/Dockerfile @@ -19,6 +19,9 @@ RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/so && apt-get update -yqq && apt-get install -y \ ${CHROME_VERSION:-google-chrome-stable} +COPY chrome-no-sandbox /usr/bin/chrome-no-sandbox +RUN chmod u+x /usr/bin/chrome-no-sandbox + RUN mkdir ~/bin ENV PATH=~/bin:$PATH diff --git a/ci/docker/compose-web/chrome-no-sandbox b/ci/docker/compose-web/chrome-no-sandbox new file mode 100644 index 0000000000..e5eda7bacb --- /dev/null +++ b/ci/docker/compose-web/chrome-no-sandbox @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +google-chrome-stable --no-sandbox "$@"