Closed ghost closed 4 months ago
Hi @laberge1234,
Could you please provide a bit more info.?
Regards, Ajit
Yes it is all running !
"build:srv": "cross-env-shell pack build $IMAGE_PREFIX/susaas-srv --path ../../code/gen/srv --builder paketobuildpacks/builder:base --buildpack gcr.io/paketo-buildpacks/nodejs -e BP_LAUNCHPOINT=./node_modules/@sap/cds/bin/cds-serve.js",
"build:api": "cross-env-shell pack build $IMAGE_PREFIX/susaas-api --path ../../code/gen/api --builder paketobuildpacks/builder:base --buildpack gcr.io/paketo-buildpacks/nodejs -e BP_LAUNCHPOINT=./node_modules/@sap/cds/bin/cds-serve.js",
I run : npm run build:srv and npm run build:api The other image are building fine The issue is happening inside the container while building, on my computer. I can run it localy it builds fine. there is a difference between the npm local commands and the build flow with the pack command.
I tryed with most recent version of node 20 and node 18 LTS.
@cap-js/cds-types: 0.2.0 @sap/cds: 7.8.0 @sap/cds-compiler: 4.8.0 @sap/cds-dk (global): 7.8.0 @sap/cds-fiori: 1.2.3 @sap/cds-foss: 5.0.0 @sap/cds-mtxs: 1.17.0 @sap/eslint-plugin-cds: 2.6.7 Node.js: v20.12.2
@laberge1234 Thanks for providing detaills.
@laberge1234
I think you are missing some installations like paketo or helm etc on your local machine Can you make sure you have all the required installations (especially paketo, helm, docker) as provided in following tutorial: https://developers.sap.com/tutorials/btp-app-kyma-prepare-dev-environment.html
No I was able to build this one : build:db-com It uses all the dependencies on your link. This builder : --builder paketobuildpacks/builder:base does not work with the project.
Can you try paketobuildpacks/builder-jammy-base
builder?
Yes I also tried this image ! Deleting node _module and packacge.lock
I do not currently have a windows machine, we need to check this with a colleague who has it.
Will update here.
Hi @laberge1234, I could not reproduce this, do you have access to the SAP Business Application Studio? Can you check if the build and deploy works there for you?
Thank you your last commit allowed me to build. I probably forgot to delete a package.lock in a directory somewhere. This was the root cause of the problem.
Great to hear, thank you for adopting the repo and keep us updated if you find any other issues. We sincerely appreciate your contribution!
There is an error when trying to build from windows only for api & srv images using main branch