chore: add Chromium installation for Karma tests and update devcontainer configuration

This commit is contained in:
Denys Vuika
2026-07-07 15:02:54 +00:00
parent 8973589ef9
commit d4ea7a43b0
4 changed files with 21 additions and 2 deletions
+5
View File
@@ -8,6 +8,11 @@ ARG PNPM_VERSION=11.5.0
ENV PNPM_HOME=/home/node/.local/share/pnpm
ENV PATH=${PNPM_HOME}:${PATH}
# Install Chromium for Karma/ChromeHeadless test execution inside the container.
RUN apt-get update \
&& apt-get install -y --no-install-recommends chromium \
&& rm -rf /var/lib/apt/lists/*
# Configure Corepack-managed pnpm globally at image build time.
RUN corepack enable \
&& corepack prepare pnpm@${PNPM_VERSION} --activate \
+2 -1
View File
@@ -47,7 +47,8 @@
"CI": "true",
"NODE_ENV": "development",
"NO_UPDATE_NOTIFIER": "1",
"PNPM_STORE_DIR": "/home/node/.pnpm-store"
"PNPM_STORE_DIR": "/home/node/.pnpm-store",
"CHROME_BIN": "/usr/bin/chromium"
},
"mounts": ["source=alfresco-ng2-pnpm-store,target=/home/node/.pnpm-store,type=volume"],