Skip to content

Scaffold the builder image without an add-on - #5

Merged
sneridagh merged 3 commits into
mainfrom
builder-remove-stub-addon
Oct 28, 2026
Merged

sneridagh merged 3 commits into
mainfrom
builder-remove-stub-addon

Conversation

@sneridagh

@sneridagh sneridagh commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

The builder image used to scaffold a full aurora_addon called plone-aurora, which stayed in /app/packages/plone-aurora as a workspace project. A project built on the builder copies in its own add-on and its own pnpm-lock.yaml, which has no entry for plone-aurora. When its first install runs frozen (for example with CI=true, as demo.plone.org does), it fails:

ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with <ROOT>/packages/plone-aurora/package.json

The builder now scaffolds with the new sub/aurora_project template (plone/cookieplone-templates#490), the Aurora counterpart of sub/frontend_project. It generates the workspace with nothing in packages/, a root package.json that depends only on @plone/registry and @plone/aurora, and the stock registry.config.ts. The image doesn't need any cleanup step.

Related: plone/cookieplone-templates#489 copies the add-on's own package.json as-is in the Aurora add-on Dockerfile.

Testing

Built locally with Aurora 1.0.0-alpha.19:

  • The new builder has an empty packages/, and its registry.config.ts and root package.json reference no add-on.
  • plone/aurora and plone/aurora-dev build, and plone/aurora starts and serves on port 3000.
  • An add-on generated from the template, with export CI=true so its first pnpm install runs frozen, builds on the new builder and starts.

Left in place it stays a packages/* workspace project, so a project built on
the builder, which copies in its own add-on and pnpm-lock.yaml, fails the
frozen-lockfile install with ERR_PNPM_OUTDATED_LOCKFILE. Drop the package,
its root package.json dependency and its registry.config.ts entry, then
refresh the lockfile.
Generate the workspace with the new cookieplone-templates sub/aurora_project
template, which has no add-on, instead of aurora_addon. The image no longer
needs to remove the scaffolded plone-aurora add-on or unregister it.
cookieplone 2.0.2 is needed for template names with a slash.
@sneridagh sneridagh changed the title Remove the scaffolded plone-aurora add-on from the builder image Scaffold the builder image without an add-on Oct 28, 2026
@sneridagh
sneridagh merged commit ffd1be8 into main Oct 28, 2026
7 checks passed
@sneridagh
sneridagh deleted the builder-remove-stub-addon branch October 28, 2026 16:22
sneridagh added a commit to plone/demo.plone.org that referenced this pull request Oct 28, 2026
plone/aurora-builder 1.0.0-alpha.19 is re-released without the plone-aurora
add-on (plone/container-aurora#5), so there is nothing to remove before the
frozen-lockfile install.
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