Skip to content

Commit

Permalink
Add partial sync in mainnet via docker E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jul 15, 2024
1 parent 8bb7d02 commit 8f74a59
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 12 deletions.
18 changes: 8 additions & 10 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -532,18 +532,16 @@ steps:
- group: Docker Checks
key: docker-e2e
steps:
- label: Smoke Test docker-compose
if: build.env("RELEASE_CANDIDATE") != null
key: docker-smoke-test
- label: Mainnet Boot Sync
depends_on:
- docker-build
timeout_in_minutes: 120
commands:
- ./scripts/buildkite/release/docker-smoke-test.sh
artifact_paths:
- "./logs/*"
env:
NODE_STATE_DIR: "${STATE_DIR?}/node/preprod"
timeout_in_minutes: 2
command: |
cd run/mainnet/docker
rm -rf databases
export SUCCESS_STATUS=syncing
export COMPOSE_FILE=base-compose.yml:docker-compose.yml
./run.sh sync
agents:
system: x86_64-linux
concurrency: 1
Expand Down
4 changes: 2 additions & 2 deletions run/common/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export NODE_CONFIGS

startup() {
# Pull the latest images
docker compose pull -q 2>/dev/null
docker compose pull -q
# Start the service in detached mode
docker compose up -d 2>/dev/null
docker compose up -d
}

# Function to clean up the service
Expand Down
1 change: 1 addition & 0 deletions run/mainnet/docker/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NETWORK="mainnet"
51 changes: 51 additions & 0 deletions run/mainnet/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: mainnet
services:
cardano-node:
image: ghcr.io/intersectmbo/cardano-node:9.0.0
environment:
CARDANO_NODE_SOCKET_PATH: /ipc/${NODE_SOCKET_NAME}
volumes:
- ${NODE_DB}:/data
- ${NODE_SOCKET_DIR}:/ipc
- ${NODE_CONFIGS}:/configs
restart: on-failure
user: ${USER_ID}
logging:
driver: "json-file"
options:
compress: "true"
max-file: "10"
max-size: "50m"
entrypoint: []
command: >
cardano-node run --topology /configs/topology.json
--database-path /data
--socket-path /ipc/node.socket
--config /configs/config.json
+RTS -N -A16m -qg -qb -RTS
cardano-wallet:
image: cardanofoundation/cardano-wallet:2024.7.7
volumes:
- ${WALLET_DB}:/wallet-db
- ${NODE_SOCKET_DIR}:/ipc
- ${NODE_CONFIGS}:/configs
ports:
- ${WALLET_PORT}:8090
entrypoint: []
command: >
cardano-wallet serve
--node-socket /ipc/${NODE_SOCKET_NAME}
--database /wallet-db
--listen-address 0.0.0.0
--mainnet
+RTS -N -A16m -qg -qb -RTS
user: ${USER_ID}
restart: on-failure
logging:
driver: "json-file"
options:
compress: "true"
max-file: "10"
max-size: "50m"
1 change: 1 addition & 0 deletions run/mainnet/docker/run.sh

0 comments on commit 8f74a59

Please sign in to comment.