Last active
October 14, 2019 09:12
-
-
Save elreydetoda/0f2f637934f85c5bdbe3faffd33f40a1 to your computer and use it in GitHub Desktop.
algo_blog_post_00 base vagrant box for algo blog post: https://blog.secureideas.com/2019/10/wireguard's-pki-in-5-steps-or-less.html
This file contains 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.box = "bento/ubuntu-18.04" | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
export DEBIAN_FRONTEND='noninteractive' | |
sudo apt-get update && sudo apt-get install \ | |
build-essential \ | |
libssl-dev \ | |
libffi-dev \ | |
python-dev \ | |
python-pip \ | |
python-setuptools \ | |
wget \ | |
unzip \ | |
python-virtualenv -y | |
wget -O ~vagrant/algo.zip 'https://github.com/trailofbits/algo/archive/master.zip' | |
pushd ~vagrant | |
unzip algo.zip | |
pushd ~vagrant/algo-master/ | |
python -m virtualenv --python=`which python2` env && | |
source env/bin/activate && | |
python -m pip install -U pip virtualenv && | |
python -m pip install -r requirements.txt | |
echo 'pushd ~vagrant/algo-master/ && source env/bin/activate' >> ~vagrant/.bashrc | |
sudo chown -R vagrant:vagrant ~vagrant/algo-master | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment