Skip to content

Commit 02d4dcd

Browse files
committed
build: add docker-compose.yml and justfile for local image builds
Adds a root docker-compose.yml that wraps the existing Dockerfile.indexer-agent and Dockerfile.indexer-cli, and a justfile with a build-image recipe so consumers can produce ghcr.io/graphprotocol/indexer-{agent,cli}:local (or an override tag) with a single command. This unblocks the local-network integration branch from needing host-absolute INDEXER_AGENT_SOURCE_ROOT overlays: downstream wrappers can consume the locally-built image by tag instead.
1 parent 6b20bf6 commit 02d4dcd

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
services:
2+
indexer-agent:
3+
image: ghcr.io/graphprotocol/indexer-agent:${TAG:-local}
4+
build:
5+
context: .
6+
dockerfile: Dockerfile.indexer-agent
7+
8+
indexer-cli:
9+
image: ghcr.io/graphprotocol/indexer-cli:${TAG:-local}
10+
build:
11+
context: .
12+
dockerfile: Dockerfile.indexer-cli

justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Build the indexer-agent and indexer-cli images locally.
2+
# Defaults to tagging `ghcr.io/graphprotocol/{indexer-agent,indexer-cli}:local`.
3+
# Override the tag with: `just build-image sha-abc1234`
4+
build-image tag="local":
5+
TAG={{tag}} docker compose build

0 commit comments

Comments
 (0)