hashgraph / hedera-sourcify

Tools for verifying Hedera smart contracts using standard open source libraries.
Apache License 2.0
6 stars 7 forks source link

ui and repository services need to be configurable at runtime to run on Kubernetes #27

Closed svienot closed 10 months ago

svienot commented 10 months ago

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