erigon-pulse/tests/automated-testing/docker-compose.yml
Thorsten Hirsch a5144e0312
add ENTRYPOINT to Dockerfile and Dockerfile.debian (#6966)
Providing an ENTRYPOINT in Dockerfiles is best practice, so I've added
an ENTRYPOINT to Dockerfile and Dockerfile.debian, setting it to erigon,
because it's the binary most people want to run. The setting can be
overridden in the ` docker run` command to execute different binaries.
Currently everybody has to override it anyway, because there's neither a
CMD nor an ENTRYPOINT given.

The Dockerfile.release already contains the ENTRYPOINT erigon.

P.S.: This PR originated in #6862.
2023-03-03 10:11:59 +00:00

68 lines
2.0 KiB
YAML

version: "3.8"
services:
erigon:
profiles:
- first
image: thorax/erigon:$ERIGON_TAG
command: |
--datadir=/home/erigon/.local/share/erigon --chain=dev --private.api.addr=0.0.0.0:9090 --mine --log.dir.path=/logs/node1
ports:
- "8551:8551"
volumes:
- datadir:/home/erigon/.local/share/erigon
- ./logdir:/logs
user: ${DOCKER_UID}:${DOCKER_GID}
restart: unless-stopped
mem_swappiness: 0
erigon-node2:
profiles:
- second
image: thorax/erigon:$ERIGON_TAG
command: |
--datadir=/home/erigon/.local/share/erigon --chain=dev --private.api.addr=0.0.0.0:9090 --staticpeers=$ENODE --log.dir.path=/logs/node2
volumes:
- datadir2:/home/erigon/.local/share/erigon
- ./logdir:/logs
user: ${DOCKER_UID}:${DOCKER_GID}
restart: unless-stopped
mem_swappiness: 0
rpcdaemon:
profiles:
- first
image: thorax/erigon:$ERIGON_TAG
entrypoint: rpcdaemon
command: |
--private.api.addr=erigon:9090 --http.api=admin,eth,erigon,web3,net,debug,trace,txpool,parity --http.addr=0.0.0.0 --http.vhosts=* --http.corsdomain=* --http.port=8545 --graphql --log.dir.path=/logs/node1
volumes:
- ./logdir:/logs
user: ${DOCKER_UID}:${DOCKER_GID}
ports: [ "8545:8545" ]
rpcdaemon-node2:
profiles:
- second
image: thorax/erigon:$ERIGON_TAG
entrypoint: rpcdaemon
command: |
--private.api.addr=erigon-node2:9090 --http.api=admin,eth,erigon,web3,net,debug,trace,txpool,parity --http.addr=0.0.0.0 --http.vhosts=* --http.corsdomain=* --http.port=8545 --log.dir.path=/logs/node2
volumes:
- ./logdir:/logs
user: ${DOCKER_UID}:${DOCKER_GID}
ports: [ "8546:8545" ]
tests:
profiles: [ "tests" ]
image: thorax/automated-testing
volumes:
- ./results:/erigon-automated-testing/results
entrypoint: pytest
command: |
-m smoke_test --quiet --junitxml="./results/result.xml" --url="http://rpcdaemon:8545" --tb=line
volumes:
datadir:
datadir2: