DIRACGrid / diracx-charts

Helm charts for running DiracX
1 stars 18 forks source link

feat: support web hotfixes via custom repo/branch #77

Closed aldbr closed 7 months ago

aldbr commented 11 months ago

This PR aims at installing a custom diracx-web coming from another repo/branch. This would allow us to easily hotfix it if required.

Before going further, I just want to make sure that I am going in the right direction. Currently, web-container-entrypoint does not work because git is not installed in the image I am using (node:alpine). I guess I should add a custom image in https://github.com/DIRACGrid/container-images, shouldn't I?

chrisburr commented 7 months ago

I think having web-container-entrypoint might get a bit painful as we have to also synchronise the node version with the webapp code.

Could we have two init containers use secret-generation to clone the code in to an emptyDir and then build the sources in a second container?

aldbr commented 7 months ago

Now there are 2 init containers:

And then the static files are mounted to the diracx-web production container in place of the original production static files.