Skip to content

Commit

Permalink
fix(indexer): remove addressbook hack (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus authored Jan 23, 2024
1 parent 1ce3ec8 commit 391e5a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
9 changes: 1 addition & 8 deletions indexer/agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@ set -euf

if [ ! -d "build/graphprotocol/indexer" ]; then
mkdir -p build/graphprotocol/indexer
git clone [email protected]:graphprotocol/indexer build/graphprotocol/indexer --branch 'theodus/local-net'
git clone [email protected]:graphprotocol/indexer build/graphprotocol/indexer --branch 'main'
fi

# TODO: temporary hack. see https://github.com/graphprotocol/common-ts/pull/114, https://github.com/graphprotocol/indexer/pull/818
if [ ! -d "build/graphprotocol/common-ts" ]; then
mkdir -p build/graphprotocol/common-ts
git clone [email protected]:graphprotocol/common-ts build/graphprotocol/common-ts --branch 'theodus/local-net'
fi
(cd build/graphprotocol/common-ts/ && yarn)

. ./.env

until curl -s "http://${DOCKER_GATEWAY_HOST}:${CONTROLLER}" >/dev/null; do sleep 1; done
Expand Down
4 changes: 1 addition & 3 deletions indexer/indexer-ts.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*

WORKDIR /opt/
RUN git clone https://github.com/graphprotocol/common-ts build/graphprotocol/common-ts --branch 'theodus/local-net'
RUN cd build/graphprotocol/common-ts && yarn
RUN git clone https://github.com/graphprotocol/indexer build/graphprotocol/indexer --branch 'theodus/local-net'
RUN git clone https://github.com/graphprotocol/indexer build/graphprotocol/indexer --branch 'v0.20.23'
RUN cd build/graphprotocol/indexer && yarn --frozen-lockfile --non-interactive

COPY ./.env /opt/
Expand Down
9 changes: 1 addition & 8 deletions indexer/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@ set -euf

if [ ! -d "build/graphprotocol/indexer" ]; then
mkdir -p build/graphprotocol/indexer
git clone [email protected]:graphprotocol/indexer build/graphprotocol/indexer --branch 'theodus/local-net'
git clone [email protected]:graphprotocol/indexer build/graphprotocol/indexer --branch 'main'
fi

# TODO: temporary hack. see https://github.com/graphprotocol/common-ts/pull/114, https://github.com/graphprotocol/indexer/pull/818
if [ ! -d "build/graphprotocol/common-ts" ]; then
mkdir -p build/graphprotocol/common-ts
git clone [email protected]:graphprotocol/common-ts build/graphprotocol/common-ts --branch 'theodus/local-net'
fi
(cd build/graphprotocol/common-ts/ && yarn)

. ./.env

until curl -s "http://${DOCKER_GATEWAY_HOST}:${CONTROLLER}" >/dev/null; do sleep 1; done
Expand Down

0 comments on commit 391e5a3

Please sign in to comment.