Created
November 15, 2021 17:21
-
-
Save cawka/b556ed037f0a663b21d14dbdaced865f to your computer and use it in GitHub Desktop.
DCT-vagrantfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define "dct-dev-1" | |
config.vm.box = "bento/ubuntu-20.04" | |
config.vm.hostname = "dct" | |
config.vm.provider "virtualbox" do |vb| | |
vb.name = "dct-dev-1" | |
vb.cpus = "8" | |
vb.memory = "16384" | |
end | |
config.vm.provision "shell", privileged: false, inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get -y install gcc-10 g++-10 build-essential \ | |
pkg-config python3-minimal libboost-all-dev \ | |
libssl-dev libsqlite3-dev libpcap-dev \ | |
libsodium-dev libz-dev \ | |
liblog4cxx-dev | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100 | |
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 100 | |
git clone https://github.com/pollere/NDNpatches | |
git clone https://github.com/named-data/ndn-cxx | |
cd ndn-cxx | |
git apply ../NDNpatches/patch.key-impl | |
./waf configure | |
./waf | |
sudo ./waf install | |
sudo ldconfig | |
cd .. | |
git clone https://github.com/named-data/NFD | |
cd NFD | |
git submodule update --init | |
./waf configure | |
./waf | |
sudo ./waf install | |
sudo cp /usr/local/etc/ndn/nfd.conf.sample /usr/local/etc/ndn/nfd.conf | |
cd .. | |
git clone https://github.com/operantnetworks/ndn-ind | |
cd ndn-ind | |
git apply ../NDNpatches/patch.ndn-ind | |
./configure | |
make -j | |
sudo make install | |
sudo ldconfig | |
cd .. | |
git clone https://github.com/pollere/DCT | |
cd DCT/ | |
cd tools/ | |
make -j | |
cd ../examples/mbps | |
make -j | |
wget https://github.com/pollere/DCT/releases/download/v3.0/linux-schemaCompile-bin-1.2.0.tgz | |
tar -xzvf linux-schemaCompile-bin-1.2.0.tgz | |
rm linux-schemaCompile-bin-1.2.0.tgz | |
./schemaCompile -o mbps1.scm mbps1.trust | |
../../tools/make_cert -s EdDSA -o mbps1.root myNet/mbps1 | |
../../tools/schema_cert -o mbps1.schema mbps1.scm mbps1.root | |
../../tools/make_cert -s EdDSA -o alice.cert myNet/mbps1/operator/alice mbps1.root | |
../../tools/make_cert -s EdDSA -o bob.cert myNet/mbps1/operator/bob mbps1.root | |
../../tools/make_cert -s EdDSA -o cathy.cert myNet/mbps1/operator/cathy mbps1.root | |
../../tools/make_bundle -o alice.bundle mbps1.root mbps1.schema +alice.cert | |
../../tools/make_bundle -o bob.bundle mbps1.root mbps1.schema +bob.cert | |
../../tools/make_bundle -o cathy.bundle mbps1.root mbps1.schema +cathy.cert | |
cd ../../.. | |
ndnsec key-gen /ndn/alice | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment