Skip to content

fix(docker): copy SPM resource bundles under their Swift 6.4 name - #30

Merged
foscomputerservices merged 1 commit into
mainfrom
fix/docker-resource-bundles
Nov 30, 2026
Merged

foscomputerservices merged 1 commit into
mainfrom
fix/docker-resource-bundles

Conversation

@foscomputerservices

Copy link
Copy Markdown
Owner

Why

Images built on swift:6.4.2-noble aborted at startup:

Fatal error: unable to find bundle named FOSShowcase_WebServer

On Linux, Swift 6.4's build names a target's resource bundle <Package>_<Target>.bundle. Up to 6.2 it was <Package>_<Target>.resources. Both Dockerfiles copied only *.resources, so the images shipped without their localization files and Leaf templates.

This was caught by starting the new images beside the live ones before switching over. The live site was never affected.

What

Dockerfile-server and Dockerfile-client:

  • Copy the bundle directory under either name.
  • Fail the image build if no bundle was copied, so a missing bundle stops at build time and cannot reach a running container.

Verification

Built on the deployment host with these Dockerfiles, then ran the new server and web app beside the live pair:

  • both start and stay up
  • the home page is byte-identical to the live one
  • the API returns the same 37 values in English and Spanish
  • images are served, and the webhook route answers an unsigned POST the same way as live

These images are what is deployed now.

On Linux, Swift 6.4's build names a target's resource bundle
`<Package>_<Target>.bundle`; up to 6.2 it was `<Package>_<Target>.resources`.
The Dockerfiles copied only `*.resources`, so images built on
swift:6.4.2-noble shipped without their localization files and Leaf
templates and aborted at startup:

    Fatal error: unable to find bundle named FOSShowcase_WebServer

Copy either form, and fail the image build if no bundle was copied so
this cannot reach a running container again.
@foscomputerservices
foscomputerservices merged commit e2926d7 into main Nov 30, 2026
4 checks passed
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