If you want to configure your ships to connect to BlazeMeter via a Proxy Server on your internal corporate network, here's what you should do:
- Follow the same process for installing a ship, but stop once you have generated the docker run command.
- Copy the docker run command and add the following environment variables (using the same format and data in the variables above) to the command:
--env HTTP_PROXY=http://server:portThe full command with the additions will look like below:
docker run -d --env HTTP_PROXY=http://server:port --env HTTPS_PROXY=http://server:port --env HARBOR_ID=<Harbor ID> --env SHIP_ID=<Ship ID> --env AUTH_TOKEN=<Auth Token> --env AUTO_UPDATE=true --env DISTRIBUTION=stable --name=blazemeter-crane --restart=on-failure -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp --net=host blazemeter/crane python agent/agent.py
- Once you have made the edits above, copy the edited command, run it on the machine that you are installing the ship, and follow the final steps in the ship install to finish the installation.
NOTE: If you would like to run tests on external sites that are not contained within your proxy, you will need to set the proxy server and port in your JMeter test, as shown below: