near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
123 stars 56 forks source link

Mieubrisse/more dockerfile fixes #258

Closed mieubrisse closed 2 years ago

mieubrisse commented 2 years ago

Fixes #180

This will: 1) allow restarting a stopped indexer container by skipping the diesel migration/near init steps that we need to run before the indexer is usable (but shouldn't run if they're already done) 2) pull all the nasty logic that was in the Dockerfile into a clean script 3) use ENTRYPOINT so that any CMD args that get passed to the indexer will go directly to the indexer binary process