[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [onionperf/master] Adds a Vagrantfile for development



commit d23895120053da3db993a30c2e0633773456d3a5
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date:   Tue Jan 15 13:11:27 2019 +0000

    Adds a Vagrantfile for development
---
 Vagrantfile | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 0000000..1fdd10f
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,35 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+$setup_onionperf = <<SCRIPT
+export DEBIAN_FRONTEND=noninteractive
+apt-get update
+apt install -y build-essential autoconf cmake libglib2.0-dev libigraph0-dev libevent-dev libssl-dev python3 git python3-stem python3-lxml python3-networkx python3-matplotlib python3-numpy python3-scipy
+cd ~
+git clone https://git.torproject.org/tor.git
+cd tor
+./autogen.sh
+./configure --disable-asciidoc
+make
+mv src/app/tor /usr/local/bin/
+cd ~
+git clone https://github.com/shadow/shadow.git
+cd shadow/src/plugin/shadow-plugin-tgen
+mkdir build
+cd build
+cmake .. -DSKIP_SHADOW=ON -DCMAKE_MODULE_PATH=`pwd`/../../../../cmake/
+make
+mv tgen /usr/local/bin/
+cd /vagrant
+python3 setup.py build
+python3 setup.py install
+SCRIPT
+
+Vagrant.configure("2") do |config|
+  config.vm.box = "debian/stretch64"
+
+  config.vm.define "oniondev" do |oniondev|
+    oniondev.vm.provision :shell, :inline => $setup_onionperf
+  end
+
+end

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits