version: "3.2"
services:
  geth-dev-node:
    image: augurproject/dev-node-geth:latest
    ports:
      - "47624:8545"
      - "47625:8546"
  geth-integration-tests:
    build:
      context: ../../../../
      dockerfile: source/support/Dockerfile
      cache_from:
        - augurproject/augur-core:latest
    entrypoint: [ "npm", "run", "test:integration:docker" ]
    # uncomment the following 3 lines to enable debugging the tests
    # command: [ "--", "--debug=0.0.0.0:9229", "--inspect-brk" ]
    # ports:
    #   - "9229:9229"
    environment:
      - ETHEREUM_HTTP=http://geth-dev-node:8545
      - ETHEREUM_GAS_PRICE_IN_NANOETH=1
      - ETHEREUM_PRIVATE_KEY=0xfae42052f82bed612a724fec3632f325f377120592c75bb78adfcceae6470c5a
      # - AUGUR_CONTROLLER_ADDRESS=0x35d93ab4de2f58c495e8ec0654f6dcc95c690fd2
    links:
      - geth-dev-node
