Can someone please tell me how to properly configure a config.yml in Circle 2.0 to establish communication with a Docker Container over TCP.
I basically have a set of tests that I have been running in a CircleCI Node Docker Container for awhile which works great. I need to setup a proxy within another Container, pass the IP/Port for that Container to the script that runs the tests. I will need to communicate with the Container hosting the proxy from outside Cloud Services like SauceLabs as well.
Below is the current state of my config.yml. Really appreciate some help setting this up correctly.
version: 2 general: branches: only: - never-build jobs: build: docker: - image: circleci/node:8.11 steps: - checkout - setup_remote_docker - run: name: Run proxy command: | docker pull owasp/zap2docker-stable docker run --name zap -u zap -p 8080:8080 -i owasp/zap2docker-stable zap.sh -daemon -host 0.0.0.0 -port 8080 background: true - run: name: Wait for Proxy command: | echo Wait for container/port to become active echo Get/save container ip address (IP_ADDRESS) - run: name: Install project command: | cd project npm install - run: name: Run tests through proxy command: | cd project npm test -- --ip $IP_ADDRESS --port 8080 workflows: version: 2 scheduled-workflow: triggers: - schedule: cron: "0 4 * * *" filters: branches: only: master jobs: - build