From db5b47a87290793b3156a013fff8d37ac9e173b7 Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:39:13 +0200 Subject: [PATCH] bump sink-mongo to 0.9.2 (#1452) * bump sink-mongo to 0.9.2 * recompute nix path --- .github/workflows/release.yml | 4 ++-- .github/workflows/rust_test.yml | 2 +- docker-compose.prod.yaml | 2 +- docker-compose.staging.yaml | 2 +- docker-compose.yaml | 2 +- docker/hive/Dockerfile | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b7473060..472978297 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -124,9 +124,9 @@ jobs: matrix: include: - platform: linux/amd64 - apibara_download_url: https://github.com/apibara/dna/releases/download/sink-mongo%2Fv0.7.1/sink-mongo-x86_64-linux.gz + apibara_download_url: https://github.com/apibara/dna/releases/download/sink-mongo%2Fv0.9.2/sink-mongo-x86_64-linux.gz - platform: linux/arm64 - apibara_download_url: https://github.com/apibara/dna/releases/download/sink-mongo%2Fv0.7.1/sink-mongo-aarch64-linux.gz + apibara_download_url: https://github.com/apibara/dna/releases/download/sink-mongo%2Fv0.9.2/sink-mongo-aarch64-linux.gz steps: - name: Prepare run: | diff --git a/.github/workflows/rust_test.yml b/.github/workflows/rust_test.yml index bd9f31ca9..056bb1101 100644 --- a/.github/workflows/rust_test.yml +++ b/.github/workflows/rust_test.yml @@ -72,7 +72,7 @@ jobs: build-args: | GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} APIBARA_STARKNET_BIN_DIR=3l93dydg7m71r66x5wllf1j9czvj7zdk - APIBARA_SINK_BIN_DIR=81f00xxzyxs6ih6376cw0qbznf6cl6bn + APIBARA_SINK_BIN_DIR=8z122nm3b42lgknvv5zp7h921n3f6ia6 outputs: type=docker,dest=./artifacts/kakarot_image.tar - name: Checkout hive tests uses: actions/checkout@v4 diff --git a/docker-compose.prod.yaml b/docker-compose.prod.yaml index 742dbd003..5b6f4b7f5 100644 --- a/docker-compose.prod.yaml +++ b/docker-compose.prod.yaml @@ -165,7 +165,7 @@ services: MONGO_INITDB_ROOT_PASSWORD: mongo indexer: - image: quay.io/apibara/sink-mongo:0.7.1 + image: quay.io/apibara/sink-mongo:0.9.2 command: - run - /indexer/src/main.ts diff --git a/docker-compose.staging.yaml b/docker-compose.staging.yaml index ebff6e68c..57dd69073 100644 --- a/docker-compose.staging.yaml +++ b/docker-compose.staging.yaml @@ -179,7 +179,7 @@ services: MONGO_INITDB_ROOT_PASSWORD: mongo indexer: - image: quay.io/apibara/sink-mongo:0.7.1 + image: quay.io/apibara/sink-mongo:0.9.2 command: - run - /indexer/src/main.ts diff --git a/docker-compose.yaml b/docker-compose.yaml index 10d635d32..641093db3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -187,7 +187,7 @@ services: MONGO_INITDB_ROOT_PASSWORD: mongo indexer: - image: quay.io/apibara/sink-mongo:0.7.1 + image: quay.io/apibara/sink-mongo:0.9.2 command: - run - /indexer/src/main.ts diff --git a/docker/hive/Dockerfile b/docker/hive/Dockerfile index b2cd3ad0a..22c636a8b 100644 --- a/docker/hive/Dockerfile +++ b/docker/hive/Dockerfile @@ -6,7 +6,7 @@ FROM ghcr.io/dojoengine/dojo:v1.0.0-alpha.14 as katana # Indexer service ### Apibara DNA indexer and indexer FROM quay.io/apibara/starknet:1.6.0 as apibara -FROM quay.io/apibara/sink-mongo:0.7.1 as indexer +FROM quay.io/apibara/sink-mongo:0.9.2 as indexer FROM debian:bookworm as apibara-build RUN apt-get update && apt-get install --no-install-recommends -y patchelf && rm -rf /var/lib/apt/lists/* @@ -16,17 +16,17 @@ RUN apt-get update && apt-get install --no-install-recommends -y patchelf && rm # These values need to be updated if the version of ApiBara Starknet or Sink change. # platform: linux/amd64: # - APIBARA_STARKNET_BIN_DIR: 3l93dydg7m71r66x5wllf1j9czvj7zdk -# - APIBARA_SINK_BIN_DIR: 81f00xxzyxs6ih6376cw0qbznf6cl6bn +# - APIBARA_SINK_BIN_DIR: 8z122nm3b42lgknvv5zp7h921n3f6ia6 # platform: linux/arm64 # - APIBARA_STARKNET_BIN_DIR: ksmcmb1ybrij98hjy4q54v31ag7d2l6l -# - APIBARA_SINK_BIN_DIR: ww2ghdaw1xpx42cf93zk5n3h222438ia +# - APIBARA_SINK_BIN_DIR: g30fi76vhnamm9wiaqnynnckbhvwdyg1 ARG APIBARA_STARKNET_BIN_DIR ARG APIBARA_SINK_BIN_DIR # Run `docker image inspect apibara/starknet:1.6.0-x86_64` to get the exact path # Run `docker image inspect apibara/starknet:1.6.0-aarch64` to get the exact path # ⚠️ This path is subject to change, so it's important to check it before building the image ⚠️ COPY --from=apibara /nix/store/${APIBARA_STARKNET_BIN_DIR}-apibara-starknet-1.6.0/bin/apibara-starknet /usr/local/bin/starknet -COPY --from=indexer /nix/store/${APIBARA_SINK_BIN_DIR}-apibara-sink-mongo-0.7.1/bin/apibara-sink-mongo /usr/local/bin/sink-mongo +COPY --from=indexer /nix/store/${APIBARA_SINK_BIN_DIR}-apibara-sink-mongo-0.9.2/bin/apibara-sink-mongo /usr/local/bin/sink-mongo # Change the interpreter path. ARG BUILDPLATFORM RUN case $BUILDPLATFORM in \