Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Create Rust gRPC client for Runner #479

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# TODO: Move this to New Coordinator's CI Workflow
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Run check
working-directory: ./indexer
run: cargo check
Expand All @@ -26,6 +29,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# TODO: Move this to New Coordinator's CI Workflow
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Run check
working-directory: ./indexer
run: cargo test
Expand All @@ -44,6 +50,9 @@ jobs:
override: true
profile: minimal
components: rustfmt
# TODO: Move this to New Coordinator's CI Workflow
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Check formatting
working-directory: ./indexer
run: |
Expand All @@ -62,6 +71,9 @@ jobs:
override: true
profile: minimal
components: clippy
# TODO: Move this to New Coordinator's CI Workflow
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Clippy check
working-directory: ./indexer
run: |
Expand Down
15 changes: 9 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ services:

coordinator:
build:
context: ./indexer
context: ./
dockerfile: ./indexer/Dockerfile
args:
- CARGO_BUILD_MODE=debug
depends_on:
- redis
environment:
REDIS_CONNECTION_STRING: redis://redis
LAKE_AWS_ACCESS_KEY:
LAKE_AWS_SECRET_ACCESS_KEY:
QUEUE_AWS_ACCESS_KEY:
QUEUE_AWS_SECRET_ACCESS_KEY:
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:
QUEUE_URL: MOCK
START_FROM_BLOCK_QUEUE_URL: MOCK
PORT: 9180
REGISTRY_CONTRACT_ID: dev-queryapi.dataplatform.near
AWS_QUEUE_REGION: eu-central-1
RUNNER_PROTO_PATH: ./queryapi_coordinator/protos/runner.proto
RUNNER_HOST: runner
RUNNER_PORT: 6001
command:
- mainnet
- from-interruption
Expand All @@ -42,6 +43,8 @@ services:
PORT: 9180
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:
RUNNER_HOST: localhost
RUNNER_PORT: 6001

redis:
image: redis
Expand Down
Loading
Loading