Skip to content

Commit

Permalink
Switch from installing apibara into ubuntu to using the apibara webho…
Browse files Browse the repository at this point in the history
…ok image
  • Loading branch information
b-j-roberts committed Apr 10, 2024
1 parent f62a06e commit 3e71cf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ services:
- apibara
volumes:
- deployment:/deployment
# TODO: Fix this command
command: bash -c "sleep 5 && source /deployment/.env && /root/.local/share/apibara/bin/apibara run docker-script.js --allow-env-from-env ART_PEACE_CONTRACT_ADDRESS"
restart: on-failure
frontend:
build:
dockerfile: frontend/Dockerfile
Expand Down
12 changes: 2 additions & 10 deletions indexer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
FROM ubuntu:24.04

# Install prerequisites
RUN apt-get update && apt-get install -y \
curl jq
RUN curl -sL https://install.apibara.com | bash

SHELL ["/bin/bash", "-c"]
RUN /root/.local/share/apibara/bin/apibara plugins install sink-webhook
FROM quay.io/apibara/sink-webhook:0.6.0 as sink-webhook

WORKDIR /indexer
COPY ./indexer/docker-script.js .

CMD ["source", "/deployment/.env", "&&", "/root/.local/share/apibara/bin/apibara", "run", "docker-script.js", "--allow-env-from-env", "ART_PEACE_CONTRACT_ADDRESS"]
CMD ["run", "docker-script.js", "--allow-env", "/deployment/.env"]

0 comments on commit 3e71cf8

Please sign in to comment.