testproject-io / csharp-sdk-examples

TestProject C# SDK Examples
13 stars 10 forks source link

Add docker-compose.yml to repository #3

Open Gershon-A opened 4 years ago

Gershon-A commented 4 years ago

This is a good idea to have the docker-compose.yml as we have on other's repo (https://github.com/testproject-io/java-sdk/tree/master/.github/ci/docker-compose.yml) for this repo as well.

version: "3.1"
services:
  testproject-agent:
    image: testproject/agent:latest
    container_name: testproject-agent
    depends_on:
      - chrome
      - firefox
    environment:
      TP_API_KEY: "${TP_API_KEY}"
      TP_AGENT_TEMP: "true"
      TP_SDK_PORT: "8686"
      CHROME: "chrome:4444"
      CHROME_EXT: "localhost:5555"
      FIREFOX: "firefox:4444"
      FIREFOX_EXT: "localhost:6666"
    ports:
    - "8585:8585"
    - "8686:8686"
  chrome:
    image: selenium/standalone-chrome
    volumes:
      - /dev/shm:/dev/shm
    ports:
    - "5555:4444"
  firefox:
    image: selenium/standalone-firefox
    volumes:
      - /dev/shm:/dev/shm
    ports:
    - "6666:4444"
mstrelex commented 4 years ago

@Gershon-A The reason we have it in other SDKs is because we run GitHub actions CI to test the SDK. C# being not open source, has no source to build in this repository, therefore what is the point to have this kind of files here?

Gershon-A commented 4 years ago

Hello, I'm preparing some basic Jenkins pipeline to show our customers how to automate testing. The flow is: Clone repo > bring up docker stack (from docker-compose.yml) > run test. I'm trying to use our repo as a source for example. And currently, this is not possible. Let's take this to offline conversation.