Skip to content

Commit

Permalink
change docker-composer
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jul 4, 2024
1 parent 910b7e3 commit 0429472
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 7 deletions.
41 changes: 34 additions & 7 deletions testground/benchmark/compositions/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions testground/benchmark/compositions/template.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0429472

Please sign in to comment.