version: "3.5"

services:
  tester:
    container_name: tester
    image: golang:1.14.4
    working_dir: /tmp/goshimmer/tools/integration-tests/tester
    command: /tmp/assets/entrypoint.sh
    environment:
      - TEST_NAME=${TEST_NAME}
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ../../..:/tmp/goshimmer:rw
      - ../logs:/tmp/logs
      - ../assets:/tmp/assets
      - goshimmer-testing-cache:/go
      - goshimmer-testing-assets:/assets

volumes:
  goshimmer-testing-cache:
    name: goshimmer-testing-cache
  goshimmer-testing-assets:
    name: goshimmer-testing-assets