Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(examples): fix supply-chain container image - swap tee with sponge
1. It appears to be some kind of race condition in the series of jq command we use to update the package.json file with resolution overrides. 2. The supporting information for the above theory is that the image build would fail at different jq invocations on sub-sequent build tries that had no changes between them. 3. Sponge is designed for the use-case of in-place file editing and therefore `tee` is the likely culprit but we don't have a full explanation to the why quite yet. 4. It is also not known how this issue manifested after the latest set of fixes were tested and verified back when the pull request was made: https://github.com/hyperledger/cacti/pull/3059/commits 5. The current code builds successfully with or without the NPM_PKG_VERSION override. One of the commands we used to test that it works was this: ```sh DOCKER_BUILDKIT=1 docker build \ --build-arg="NPM_PKG_VERSION=2.0.0-2945-supply-chain-app-build-failed.241+b2c306ea0" \ --file ./examples/cactus-example-supply-chain-backend/Dockerfile \ . \ --tag scaeb ``` Signed-off-by: Peter Somogyvari <[email protected]>
- Loading branch information