Implement Reproducible Builds and Stabilize Standalone Deployment#1606
Open
GMishx wants to merge 1 commit intoeclipse-sw360:mainfrom
Open
Implement Reproducible Builds and Stabilize Standalone Deployment#1606GMishx wants to merge 1 commit intoeclipse-sw360:mainfrom
GMishx wants to merge 1 commit intoeclipse-sw360:mainfrom
Conversation
Member
Author
641f777 to
838aa3d
Compare
Member
This commit implements a deterministic build process for the Next.js frontend by standardizing environment variables and normalizing output manifests. Key improvements: - Enhanced scripts to handle constant encryption keys and cleanup. - Added 'pnpm reproducible-build' script to package.json. - Updated Dockerfile to leverage the reproducible build mode by default. - Added detailed documentation to README.md. These changes ensure bit-for-bit identical build outputs across runs, enhancing supply chain security and auditing. Signed-off-by: Gaurav Mishra <mishra.gaurav@siemens.com>
47818ba to
a101f91
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a deterministic build process for the Next.js frontend, ensuring bit-for-bit identical Docker images and resolving runtime stability issues in standalone mode.
Key Changes
scripts/run-deterministic-build.shto handle manifest normalization, JSON sorting, and timestamp fixing (1970-01-01).scripts/remove-preview-field.jsto normalize volatile preview metadata and prevent 500 errors at runtime.AUTH_SECRETandNEXT_SERVER_ACTIONS_ENCRYPTION_KEY.Testing
ls -laRshows correct normalized timestamps.Note: PR depends on #1605