From 4fed3363b9e0b54edde7ad85c2748af5fbf903fd Mon Sep 17 00:00:00 2001 From: Jimmy Li Date: Tue, 4 Jun 2024 15:51:47 +0000 Subject: [PATCH] Fixes #4425 so tests work after Docker setup --- .devcontainer/Dockerfile | 2 +- .devcontainer/devcontainer.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 396a22d452..8c98b99e65 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,4 +2,4 @@ # it will be more efficient to change the image. # See https://github.com/devcontainers/images/blob/main/src/ruby/history/ FROM mcr.microsoft.com/devcontainers/ruby:dev-3.2-buster -RUN apt -y update && apt install -y vim curl gpg postgresql postgresql-contrib +RUN apt -y update && apt install -y vim curl gpg postgresql postgresql-contrib chromium \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 87c12cd44b..ee345ad95f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -16,5 +16,10 @@ } }, + // DOCKER env variable passed to Cuprite to enable --no-sandbox so Chrome can run in Docker + "remoteEnv": { + "DOCKER": "true" + }, + "postCreateCommand": ".devcontainer/post-create.sh" }