satoshipay / stellar-helm-charts

Helm charts for Stellar applications (Core, Horizon, Friendbot, ...)
Apache License 2.0
10 stars 11 forks source link

Use init container for history archive initialization #2

Open andrenarchy opened 5 years ago

andrenarchy commented 5 years ago

Currently, initializeHistoryArchives passes down INITIALIZE_HISTORY_ARCHIVES=true to the Stellar Core container. Instead, we should use an init container for this operation instead of using the Stellar Core container's entrypoint.

Note: I think we should make sure that we don't overwrite an existing history archive accidentally, so the logic from https://github.com/satoshipay/docker-stellar-core/blob/8dac8b3df22f1e1ec92cde6f09caf3b54199b8c6/entry.sh#L27-L49 should be copied.