From 0429472e52a71c3a53062b5d2a1eb9f87b8d866c Mon Sep 17 00:00:00 2001 From: huangyi Date: Thu, 4 Jul 2024 12:13:54 +0800 Subject: [PATCH] change docker-composer --- .../benchmark/compositions/docker-compose.yml | 41 +++++++++++++++---- .../benchmark/compositions/template.yml | 8 ++++ 2 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 testground/benchmark/compositions/template.yml diff --git a/testground/benchmark/compositions/docker-compose.yml b/testground/benchmark/compositions/docker-compose.yml index 1ab74135d8..9a6fd8eb40 100644 --- a/testground/benchmark/compositions/docker-compose.yml +++ b/testground/benchmark/compositions/docker-compose.yml @@ -1,9 +1,36 @@ version: '3' services: - testplan: - image: ghcr.io/crypto-org-chain/cronos-testground:latest - command: stateless-testcase run /data "${VALIDATORS}" - volumes: - - benchmark-volume:/data - deploy: - replicas: 10 + testplan-0: + extends: + file: template.yml + service: testplan-template + environment: + JOB_COMPLETION_INDEX: 0 + + testplan-1: + extends: + file: template.yml + service: testplan-template + environment: + JOB_COMPLETION_INDEX: 1 + + testplan-2: + extends: + file: template.yml + service: testplan-template + environment: + JOB_COMPLETION_INDEX: 2 + + testplan-3: + extends: + file: template.yml + service: testplan-template + environment: + JOB_COMPLETION_INDEX: 3 + + testplan-4: + extends: + file: template.yml + service: testplan-template + environment: + JOB_COMPLETION_INDEX: 4 diff --git a/testground/benchmark/compositions/template.yml b/testground/benchmark/compositions/template.yml new file mode 100644 index 0000000000..57ede019c3 --- /dev/null +++ b/testground/benchmark/compositions/template.yml @@ -0,0 +1,8 @@ +version: '3' +services: + testplan-template: + image: ghcr.io/crypto-org-chain/cronos-testground:latest + command: stateless-testcase run /data "${VALIDATORS}" + volumes: + - ${DATADIR:-"/tmp/data/out"}:/data + - /tmp:/tmp