From 431c69b474a70499c950497f282436922485e932 Mon Sep 17 00:00:00 2001 From: roy-dydx <133032749+roy-dydx@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:26:24 -0400 Subject: [PATCH] Fix auxo build and add auxo build check (#2140) --- .../indexer-build-docker-image-check.yml | 30 +++++++++++++++++++ indexer/Dockerfile.auxo.remote | 4 +++ 2 files changed, 34 insertions(+) diff --git a/.github/workflows/indexer-build-docker-image-check.yml b/.github/workflows/indexer-build-docker-image-check.yml index f90233cb6f..75fd0c4d36 100644 --- a/.github/workflows/indexer-build-docker-image-check.yml +++ b/.github/workflows/indexer-build-docker-image-check.yml @@ -77,3 +77,33 @@ jobs: DOCKER_BUILDKIT=1 docker build \ --platform amd64 \ -f Dockerfile.bazooka.remote . + + check-build-auxo: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./indexer + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Install pnpm + run: + npm install -g pnpm@6.34.0 + + - name: Build and install + run: | + pnpm install --loglevel warn --frozen-lockfile + pnpm run build:prod:all + + - name: Build docker image for auxo + id: build-image + run: | + DOCKER_BUILDKIT=1 docker build \ + --platform amd64 \ + -f Dockerfile.auxo.remote . diff --git a/indexer/Dockerfile.auxo.remote b/indexer/Dockerfile.auxo.remote index 5b2145a1dd..28bc1d1ac0 100644 --- a/indexer/Dockerfile.auxo.remote +++ b/indexer/Dockerfile.auxo.remote @@ -11,7 +11,11 @@ COPY ./patches ./patches # Copy auxo and imported packages COPY ./packages/base/ ./packages/base/ +COPY ./packages/dev/ ./packages/dev/ +COPY ./packages/postgres/ ./packages/postgres/ COPY ./packages/v4-protos/ ./packages/v4-protos/ +COPY ./packages/kafka/ ./packages/kafka/ +COPY ./packages/redis/ ./packages/redis/ COPY ./services/auxo/ ./services/auxo/ COPY ./packages/v4-proto-parser/ ./packages/v4-proto-parser/