Skip to content

Copy the Aurora add-on package.json as-is in its Dockerfile - #489

Merged
sneridagh merged 2 commits into
mainfrom
aurora-addon-dockerfile-package-json
Oct 28, 2026
Merged

sneridagh merged 2 commits into
mainfrom
aurora-addon-dockerfile-package-json

Conversation

@sneridagh

Copy link
Copy Markdown
Member

Until now, the Aurora add-on Dockerfile copied package.json to package.json.temp and merged its dependencies into the plone/aurora-builder one. The merge kept the builder's own entries, so the result no longer matched the add-on's pnpm-lock.yaml, and the frozen-lockfile install failed with ERR_PNPM_OUTDATED_LOCKFILE. The builder's "plone-aurora": "workspace:*" was one of those entries.

The Dockerfile now copies the add-on's package.json straight to /app/package.json. There's no .temp copy and no merge.

This covers every Aurora template: aurora_cmfplone, aurora_nick and aurora_nick_embedded all get their frontend from add-ons/aurora_addon. The Volto sub/*_settings Dockerfiles build on plone/frontend-builder and are unchanged.

Companion change: plone/container-aurora#5, which removes the scaffolded plone-aurora add-on from the builder image.

Testing

  • The aurora_addon, aurora_cmfplone, aurora_nick and aurora_nick_embedded template tests pass.
  • Generated an add-on, ran make install, and built its Dockerfile on a builder with Scaffold the builder image without an add-on container-aurora#5 applied. The builder stage passes, including pnpm install and CI=1 pnpm install --prod.

Follow-up, not in this PR: the final stage's corepack use pnpm@… runs a full uncached pnpm install and times out after about 5 minutes. Switching it to corepack install makes that step take 6s.

Merging its dependencies into the aurora-builder package.json kept the
builder's own dependencies, so the result no longer matched the add-on's
pnpm-lock.yaml and the frozen-lockfile install failed.
…le-package-json

* origin/main:
  Include Nick's example add-on in the nick_backend workspace
  Read the Aurora image version from mrs.developer.json
@sneridagh

Copy link
Copy Markdown
Member Author

@ericof Merging this one once is green, Aurora thinggies

@sneridagh
sneridagh merged commit 145f4f2 into main Oct 28, 2026
120 checks passed
@sneridagh
sneridagh deleted the aurora-addon-dockerfile-package-json branch October 28, 2026 15:59
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.

1 participant