Skip to content

Instantly share code, notes, and snippets.

@elreydetoda
Last active October 14, 2019 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elreydetoda/0f797ee95ea4844aea8af5d0df8d4654 to your computer and use it in GitHub Desktop.
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
# -*- 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