Last active
October 14, 2019 09:09
-
-
Save elreydetoda/0f797ee95ea4844aea8af5d0df8d4654 to your computer and use it in GitHub Desktop.
algo_blog_post_01 vagrant file for my personal config 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/ | |
wget 'https://gist.githubusercontent.com/elreydetoda/abd5f84d8471e7f19b03d8708069acf3/raw/d57fbd3072d184c18e27ae7410bc9021059578d5/config.cfg' | |
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