-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
137 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.