Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

feat: support rollups-node 1.1 #42

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion docker-compose-host-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: "3"

services:
server_manager:
image: cartesi/rollups-host-runner:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-host-runner
ports:
- "5004:5004"
environment:
Expand Down
3 changes: 2 additions & 1 deletion docker-compose-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: "3"

services:
server_manager:
image: cartesi/rollups-host-runner:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-host-runner
ports:
- "5004:5004"
environment:
Expand Down
25 changes: 14 additions & 11 deletions docker-compose-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ version: "3.9"

x-credentials:
&postgres-config
POSTGRES_HOSTNAME: database
POSTGRES_PORT: "5432"
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
POSTGRES_ENDPOINT: postgres://postgres:password@database:5432/postgres

services:
dispatcher:
image: cartesi/rollups-dispatcher:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-dispatcher
restart: always
depends_on:
state_server:
Expand All @@ -34,7 +31,8 @@ services:
- ./deployments:/deployments:ro

state_server:
image: cartesi/rollups-state-server:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-state-server
restart: always
healthcheck:
test: [ "CMD-SHELL", "bash -c 'echo \"\" > /dev/tcp/127.0.0.1/50051;'" ]
Expand All @@ -50,7 +48,8 @@ services:
BH_BLOCK_TIMEOUT: 120

advance_runner:
image: cartesi/rollups-advance-runner:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-advance-runner
restart: always
healthcheck:
test: [ "CMD", "curl", "--fail", "localhost:8080/healthz" ]
Expand All @@ -68,6 +67,7 @@ services:
environment:
RUST_LOG: info
SERVER_MANAGER_ENDPOINT: http://server_manager:5001
PROVIDER_HTTP_ENDPOINT: ${RPC_URL:?undefined RPC_URL}
SESSION_ID: default_rollups_id
REDIS_ENDPOINT: redis://redis:6379
CHAIN_ID: ${CHAIN_ID:?undefined CHAIN_ID}
Expand All @@ -89,7 +89,8 @@ services:
- REMOTE_CARTESI_MACHINE_LOG_LEVEL=info

inspect_server:
image: cartesi/rollups-inspect-server:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-inspect-server
restart: always
ports:
- "5005:5005"
Expand All @@ -103,7 +104,8 @@ services:
SESSION_ID: default_rollups_id

indexer:
image: cartesi/rollups-indexer:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-indexer
restart: always
depends_on:
database:
Expand All @@ -120,7 +122,8 @@ services:
- ./deployments:/deployments:ro

graphql_server:
image: cartesi/rollups-graphql-server:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-graphql-server
ports:
- "4000:4000"
depends_on:
Expand Down
25 changes: 14 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ version: "3.9"

x-credentials:
&postgres-config
POSTGRES_HOSTNAME: database
POSTGRES_PORT: "5432"
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
POSTGRES_ENDPOINT: postgres://postgres:password@database:5432/postgres

services:
hardhat:
Expand Down Expand Up @@ -38,7 +34,8 @@ services:
- ./deployments:/app/rollups/deployments

dispatcher:
image: cartesi/rollups-dispatcher:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-dispatcher
restart: always
depends_on:
hardhat:
Expand Down Expand Up @@ -69,7 +66,8 @@ services:
- ./deployments:/deployments:ro

state_server:
image: cartesi/rollups-state-server:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-state-server
restart: always
healthcheck:
test: ["CMD-SHELL","bash -c 'echo \"\" > /dev/tcp/127.0.0.1/50051;'"]
Expand All @@ -88,7 +86,8 @@ services:
BH_BLOCK_TIMEOUT: 8

advance_runner:
image: cartesi/rollups-advance-runner:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-advance-runner
restart: always
healthcheck:
test: [ "CMD", "curl", "--fail", "localhost:8080/healthz" ]
Expand All @@ -108,6 +107,7 @@ services:
environment:
RUST_LOG: info
SERVER_MANAGER_ENDPOINT: http://server_manager:5001
PROVIDER_HTTP_ENDPOINT: http://hardhat:8545
SESSION_ID: default_rollups_id
REDIS_ENDPOINT: redis://redis:6379
CHAIN_ID: 31337
Expand Down Expand Up @@ -188,7 +188,8 @@ services:
]

inspect_server:
image: cartesi/rollups-inspect-server:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-inspect-server
restart: always
ports:
- "5005:5005"
Expand All @@ -202,7 +203,8 @@ services:
SESSION_ID: default_rollups_id

indexer:
image: cartesi/rollups-indexer:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-indexer
restart: always
depends_on:
database:
Expand All @@ -221,7 +223,8 @@ services:
- ./deployments:/deployments:ro

graphql_server:
image: cartesi/rollups-graphql-server:1.0.0
image: cartesi/rollups-node:1.1.0
command: cartesi-rollups-graphql-server
ports:
- "4000:4000"
depends_on:
Expand Down