source ./.gitlab-scripts/set_environment.sh
export DOCKER_HOST_IP=localhost && echo "DOCKER_HOST_IP overriden to: ${DOCKER_HOST_IP}"
PROJECT_DIR=`pwd`docker-compose up -dhttp://${DOCKER_HOST_IP}:7070/api/topic/sts_topo_process_agents?limit=500Project can be build on Mac with the help of Vagrant VM. After you clone the project do the following steps.
On macOS get dependencies.
cd stackstate-process-agent
rake deps
rake deriveStart Vagrant VM and build the process agent binary.
vagrant up process-agent-test
vagrant ssh process-agent-test
cd $GOPATH
cd cd src/github.com/StackVista/stackstate-process-agent/
rake buildStart StackState or Simulator on macOS listening on port 7077.
Edit the conf-dev.yaml to use sts_url that is pointing to host macOS. For Vagrant VM it's usually 10.0.2.2. It should look like this: sts_url: http://10.0.2.2:7077/stsAgent
In Vagrant VM start process agent with following command.
sudo ./process-agent -config conf-dev.yaml