I have PHP application and am maintaining my frontend assets using npm (package.json). When I start build in openshift then the build have to import my static libraries into my project assets folder which I defined in package.json and move to CDN server (I have shared network location which I can share with build service account - PVC(Persistence Volume Claim) with ReadWrite access) and deploy my php app to my php container.
spapp
- applications - folder
- assets - my static assets such css, js, images
- composer.json - php libraries
- package.json - static libraries
When I request a build then the build will do the following:
- install my composer.json libraries (working fine now)
- install my package.json libraries into assets folder and move it to CDN server via network path or shared PVC ( Expecting )
- deploy my app to PHP container (working fine now)