### Build Docker Image for Ekubo Indexer Source: https://github.com/ekuboprotocol/indexer/blob/main/README.md Build the Docker runtime image for the Ekubo indexer. Bun executes TypeScript sources directly, eliminating the need for a separate build step. ```bash docker build -t ekubo-indexer . ``` -------------------------------- ### Run Database Migrations with Docker Source: https://github.com/ekuboprotocol/indexer/blob/main/README.md Execute database migrations using the Ekubo indexer Docker image. Ensure to provide the `.env` file for necessary environment variables. ```bash docker run --rm --env-file .env ekubo-indexer scripts/migrate.ts ``` -------------------------------- ### Run Ekubo Indexer Docker Container Source: https://github.com/ekuboprotocol/indexer/blob/main/README.md Run the Ekubo indexer Docker container. Environment variables like `NETWORK_TYPE` and `NETWORK` can be passed to configure the indexer for specific networks. ```bash docker run --rm \ -e NETWORK_TYPE=starknet \ -e NETWORK=mainnet \ ekubo-indexer ``` -------------------------------- ### Run Scripts from Ekubo Indexer Docker Image Source: https://github.com/ekuboprotocol/indexer/blob/main/README.md Reuse the Ekubo indexer Docker image to run auxiliary scripts, such as migrations or token synchronization. Override the default command to point to the desired TypeScript file. ```bash docker run --rm ekubo-indexer scripts/migrate.ts ``` ```bash docker run --rm ekubo-indexer scripts/sync-tokens.ts ``` ```bash docker run --rm ekubo-indexer scripts/sync-token-prices.ts ``` -------------------------------- ### Pull Ekubo Indexer Docker Image from GitHub Source: https://github.com/ekuboprotocol/indexer/blob/main/README.md Pull the Ekubo indexer Docker image from GitHub Container Registry. This ensures you are using the exact build published by CI. ```bash docker pull ghcr.io/ekuboprotocol/indexer: ``` -------------------------------- ### Restore Postgres Database Dump Source: https://github.com/ekuboprotocol/indexer/blob/main/README.md Use `pg_restore` to import a database dump. This command is useful for syncing a new node with existing data. Ignore warnings related to the `doadmin` role or `pg_cron` extension if they are not present in your target database. ```bash pg_restore --clean --if-exists --no-owner \ --dbname postgres://user:pass@host:5432/dbname \ db-backup-20240101T000000Z.dump ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.