From 16dc11c6781750c45c3279245dc0555e4b717964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ce=C4=BEuch?= Date: Tue, 12 Nov 2024 16:24:49 +0100 Subject: [PATCH] make grover work in docker container --- .env | 1 + .env.test | 1 + Dockerfile | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 056459d97..ec9e43163 100644 --- a/.env +++ b/.env @@ -11,6 +11,7 @@ SITE_ADMIN_EMAILS= GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= GOOD_JOB_EXECUTION_MODE= +GROVER_NO_SANDBOX=true # must be true for running chromium as root in Docker container ADMIN_IDS= LOG_LEVEL= DB_HOST= diff --git a/.env.test b/.env.test index a69b9886f..9b5f06bf3 100644 --- a/.env.test +++ b/.env.test @@ -11,4 +11,5 @@ ZwIDAQAB ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=1 ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=2 ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=3 +GROVER_NO_SANDBOX=true # must be true for running chromium as root in Docker container PDF_DISPLAY_URL= diff --git a/Dockerfile b/Dockerfile index 81798a612..8b1871252 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM ruby:3.3.0 # Install packages -RUN apt-get update && apt-get install -y build-essential nodejs libpq-dev npm fop=1:2.* libsaxon-java libsaxonb-java +RUN apt-get update && apt-get install -y build-essential nodejs libpq-dev npm fop=1:2.* libsaxon-java libsaxonb-java chromium # Setup FOP to use saxon xslt parser RUN sed -i '/find_jars/i \