The ui and repository service are React app which are only configurable at build time in the upstream Sourcify project.
But they both need to know the URL at which they can reach the server and this has to be defined at runtime.
The previous modification allowing this was based on a Docker entrypoint patching the index.html of the apps to set global variables accessible from the app. This works well with Docker, but not with Kubernetes (the container FS is readonly).
Solution
ui and repository apps should read their config from a file. There will be a version of this file included in the static content of the app which can be dynamically overloaded via a mount point in Docker or Helm chart.
Problem
The ui and repository service are React app which are only configurable at build time in the upstream Sourcify project. But they both need to know the URL at which they can reach the server and this has to be defined at runtime. The previous modification allowing this was based on a Docker entrypoint patching the index.html of the apps to set global variables accessible from the app. This works well with Docker, but not with Kubernetes (the container FS is readonly).
Solution
ui and repository apps should read their config from a file. There will be a version of this file included in the static content of the app which can be dynamically overloaded via a mount point in Docker or Helm chart.
Alternatives
No response