Skip to content

Commit

Permalink
feat: try build indexer image
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Aug 27, 2023
1 parent 9e6d273 commit b15c453
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 13 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-alt-indexer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: deploy alt indexer

on:
push:

jobs:
build:
strategy:
fail-fast: true

name: Build Indexer Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: build Docker
run: |
cd packages/indexer
docker build .
23 changes: 23 additions & 0 deletions packages/indexer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:18

## install pnpm
RUN npm install -g pnpm

WORKDIR /app

## clone mud repo and lock hash
RUN git clone https://github.com/latticexyz/mud.git; \
cd mud; \
git checkout 57ee7f9cb7b5803a6f6b6ad69a7d50fbef4d8dc1; \
pnpm install; \
pnpm build;

WORKDIR /app/mud/packages/store-indexer

ENV SQLITE_FILENAME=altlayer.db
ENV CHAIN_ID=1129710
ENV START_BLOCK=4827367
ENV RPC_HTTP_URL=https://flashlayer.alt.technology/autochessia7806fd60
ENV RPC_WS_URL=wss://flashlayer.alt.technology/autochessia7806fd60

ENTRYPOINT [ "pnpm", "start" ]
12 changes: 12 additions & 0 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "indexer",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"dependencies": {}
}
94 changes: 81 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b15c453

Please sign in to comment.