Skip to content

fix: add --ignore-scripts to pnpm install in Dockerfile.ecs#5252

Open
dhaley wants to merge 2 commits into
SEED-platform:developfrom
dhaley:fix/dockerfile-ecs-pnpm-workspace-ignore-scripts
Open

fix: add --ignore-scripts to pnpm install in Dockerfile.ecs#5252
dhaley wants to merge 2 commits into
SEED-platform:developfrom
dhaley:fix/dockerfile-ecs-pnpm-workspace-ignore-scripts

Conversation

@dhaley

@dhaley dhaley commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Problem

pnpm-workspace.yaml added in #5126 (v3.4.0) includes ng_seed/seed-angular as a workspace package. seed-angular's preinstall hook runs npx -y only-allow pnpm, but npx uses npm as its exec agent internally — only-allow detects this and rejects the install:

. preinstall: ║   Use "pnpm install" for installation in this project.   ║
. preinstall: Failed
ERROR: failed to build: process "pnpm install --frozen-lockfile" did not complete successfully: exit code: 1

This broke Dockerfile.ecs on the develop branch. Last working commit: 41cbf544c (v3.3.2).

Fix

Add --ignore-scripts to the initial pnpm install in Dockerfile.ecs. Lifecycle hooks aren't needed during dependency installation — the Angular build is already run explicitly in the next step via pnpm -C /seed/ng_seed/seed-angular build.

Testing

The Dockerfile.ecs build now completes successfully with the workspace layout introduced in v3.4.0.

pnpm-workspace.yaml (added in v3.4.0) includes ng_seed/seed-angular as a
workspace package. seed-angular's preinstall hook runs `npx -y only-allow pnpm`
which uses npm as the exec agent internally — only-allow detects this and
rejects the install with exit code 1.

Adding --ignore-scripts to the initial pnpm install skips lifecycle hooks
during dependency installation. The Angular build is then run explicitly
via `pnpm -C /seed/ng_seed/seed-angular build` in the next step.
Dockerfile.ecs.ci is identical to Dockerfile.ecs but omits the NREL internal
cert fetch (raw.github.nrel.gov is unreachable from public GitHub runners).

The new ecs-docker-build CI job catches regressions like the pnpm workspace
preinstall failure introduced in v3.4.0 (fixed in this PR via --ignore-scripts)
that would otherwise only surface during a CodeBuild deploy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants