torch-agent/docker-tor
2020-10-22 11:32:13 +02:00
..
agent-conf Added Dcoker Tor test harness 2020-10-22 10:13:31 +02:00
Dockerfile Added Dcoker Tor test harness 2020-10-22 10:13:31 +02:00
README.md Added Dcoker Tor test harness 2020-10-22 10:13:31 +02:00
torch-agent.wrapper.sh Reduced delays; they weren't the source of the problem 2020-10-22 11:32:13 +02:00

Tor Test Harness for TORch Agent

This is a Docker container for running the current development version of TORch Agent in an environment with a local Tor Proxy (without having to install and configure Tor on the development machine itself)

Preparation

  1. Build a Debian package from the current development version of TORch Agent
python -m venv venv && source venv/bin/activate
pip3 install -r requirements.txt
./build-deb.sh
  1. Build the Docker image
docker build -f docker-tor/Dockerfile -t torch-agent .
  1. Configure torch-agent by editing agent-conf/torch.conf

    • Be sure to update the onion hostname of the broker with the one you wish to test with
  2. Launch the Docker container

docker run -it --rm -v "$(pwd)/docker-tor/agent-conf:/etc/torch" torch-agent