Skip to content

Commit

Permalink
refactor: use yarn instead of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
wgwz committed Sep 28, 2023
1 parent a08fb82 commit d2c61cc
Show file tree
Hide file tree
Showing 3 changed files with 512 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker/indexer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.9

# Install dependencies
RUN apt-get update
RUN apt-get install libpq-dev postgresql-client nodejs npm python3-poetry -y
RUN apt-get install libpq-dev postgresql-client nodejs python3-poetry yarnpkg -y

# Set working directory
WORKDIR /home/indexer
Expand All @@ -12,4 +12,4 @@ COPY . .

# Install indexer
RUN poetry install
RUN npm i
RUN yarnpkg install
2 changes: 1 addition & 1 deletion docker/scripts/indexer_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ psql "$DATABASE_URL" -c "CREATE DATABASE indexer"
psql "$DATABASE_URL" -c "CREATE DATABASE indexer_shadow"

# run migrations
npm run db-init
yarnpkg run db-init

# workaround for indexer starting with new chain
psql "$DATABASE_URL" -c "INSERT INTO chain (
Expand Down
Loading

0 comments on commit d2c61cc

Please sign in to comment.