Skip to content

Commit

Permalink
Update custom-indexer.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaptosj committed Oct 12, 2024
1 parent d168f84 commit c739094
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ diesel migration generate create-abc-table \

Sign up for [Aptos Build](https://developers.aptoslabs.com/), create a new project and get the API token.

### Build the docker image locally and run the container locally
### Build the indexer as a docker container

In the `indexer` folder, make a copy of `example.config.yaml` and rename it to `config.yaml`. Fill in the following:
- `starting_version`: The tx version (Aptos concept, similar to block height) from which you want to start indexing
Expand All @@ -108,6 +108,8 @@ Build the docker image targeting linux/amd64 as we will eventually push the imag
docker build --platform linux/amd64 -t indexer .
```

### Run the indexer locally

You can run the docker container locally to make sure it works. Mac supports linux/amd64 emulation so you can run the x86 docker image on Mac.

```bash filename="Terminal"
Expand Down

0 comments on commit c739094

Please sign in to comment.