gcz-provider deployment is failing in IBM env after code restructuring
gcz-provider module deployment is failing in IBM env after code restructuring, actually deployment is failing due to below error as not able to find the koop-config file.
Error: Cannot find module '../../../.config/koop-config.json'
Require stack:
- /opt/app-root/src/src/request-feature/feature-info.js
- /opt/app-root/src/src/routes.js
- /opt/app-root/src/src/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/opt/app-root/src/src/request-feature/feature-info.js:1:54)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/opt/app-root/src/src/request-feature/feature-info.js',
'/opt/app-root/src/src/routes.js',
'/opt/app-root/src/src/index.js'
We could see after code restructuring the koop-config file is present in ".config" folder which is outside the "gcz-provider-core" folder. The context path after restructuring becomes "gcz-provider\gcz-provider-core" due to this the folder/files present outside the context path is not getting copied inside the image created in IBM environment (in Openshift, using s2i approach).
We are not sure whether the current restructuring of code is working for any other csp or not but it seems for IBM this koop-config file need to be present inside any folder of "gcz-provider-core". Could you please let us know whether this changes can be done or not, if yes, then could you make the necessary changes.