-
Notifications
You must be signed in to change notification settings - Fork 4
/
Vagrantfile
42 lines (33 loc) · 925 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV["LC_ALL"] = "en_US.UTF-8"
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.hostname = 'sheep'
config.vm.provider 'virtualbox' do |vb|
vb.customize ['modifyvm', :id, '--memory', '1024']
vb.customize ['modifyvm', :id, '--chipset', 'ich9']
end
config.vm.provision "shell", privileged: false, inline: <<-SHELL
set -ex
#
# Install yq
#
sudo apt update
sudo apt install -y python3-pip jq
sudo pip3 install yq
#
# Install bats
#
git clone https://github.com/sstephenson/bats.git
cd bats
sudo ./install.sh /usr/local
cd ..
rm -rf bats
#
# Install mkdocs
#
pip3 install mkdocs Pygments
SHELL
config.vm.network "forwarded_port", guest: 8000, host: 9000
end