https://github.com/multiversx/mx-chain-rosetta-docker-scripts
Scripts referenced by Rosetta's Docker setup.
https://github.com/multiversx/mx-chain-rosetta-docker-scripts
Last synced: 10 months ago
JSON representation
Scripts referenced by Rosetta's Docker setup.
- Host: GitHub
- URL: https://github.com/multiversx/mx-chain-rosetta-docker-scripts
- Owner: multiversx
- Created: 2022-08-15T14:59:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T20:53:42.000Z (over 2 years ago)
- Last Synced: 2024-04-01T15:08:37.210Z (over 2 years ago)
- Language: Shell
- Size: 59.6 KB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rosetta-docker-scripts
Scripts referenced by [Rosetta's Docker setup](https://github.com/multiversx/mx-chain-rosetta-docker). **Not usable in other contexts.**
These scripts are kept separately (in this repository) so that we can easily use versioned references towards them, and also to satisfy Rosetta's [build anywhere](https://www.rosetta-api.org/docs/node_deployment.html#build-anywhere) requirement.
## `adjust_config.py`
This script is used to tailor the default Observer configuration. More precisely, it alters the files `config.toml` and `prefs.toml` accordingly and adjusts settings related to `DbLookupExtensions`, `Antiflood` etc.
## `entrypoint.sh`
This script should be used as the _entrypoint_ of Rosetta's [Dockerfile](https://github.com/multiversx/mx-chain-rosetta-docker/blob/main/Dockerfile). It starts the requested program (`node` or `rosetta`), with the provided arguments, and with the appropriate configuration.
## Notable references
- [Docker: How to execute a shell command before the ENTRYPOINT](https://stackoverflow.com/a/41518225)