Give the TypeScript toolchain git, for the merge checks that run in it (hq ADR 0237)
A repository's own merge-check.sh may declare this toolchain, and a suite that reads a repository's history failed with spawnSync git ENOENT. Nothing compiled here calls it.
This commit is contained in:
@@ -64,6 +64,12 @@ RUN npm prune --omit=dev
|
||||
FROM compiling AS toolchain
|
||||
COPY --from=lean /app/node_modules /app/runtime/node_modules
|
||||
RUN printf '{"type":"module","private":true}\n' > /app/runtime/package.json
|
||||
# **git, because a pull request's merge check runs in this image too** (novox/hq ADR 0237): a repository's
|
||||
# own merge-check.sh that declares this toolchain runs here, and a suite that reads a repository's history
|
||||
# (the lab's last-run record) ran into "spawnSync git ENOENT". Nothing compiled here calls it.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends git \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# ---- runtime: what a module's own service may run in ------------------------------------------
|
||||
FROM ${NODE_BASE} AS runtime
|
||||
|
||||
Reference in New Issue
Block a user