-
-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathvagrant.sh
executable file
·54 lines (40 loc) · 1.27 KB
/
vagrant.sh
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
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env bash
#
# Usage:
# test/vagrant.sh <function name>
set -o nounset
set -o pipefail
set -o errexit
# TODO:
# - FreeBSD - fix
# - OpenBSD - no official image
# - 32-bit https://app.vagrantup.com/puppetlabs/boxes/ubuntu-16.04-32-puppet
# Or a really old one:
# - https://app.vagrantup.com/hashicorp/boxes/precise32
# Hm lots of Ruby dependencies.
install() {
sudo apt install vagrant
sudo apt install virtualbox
}
# Downloads the image, run it, set up SSH stuff (keys, etc.).
archlinux() {
# Hm does this only happen once per dir?
vagrant init archlinux/archlinux
vagrant up
}
# vagrant ssh to log in. ~/git/oil is mounted to /vagrant. User is 'vagrant'.
# sudo pacman -S gcc make
# Then untar ~/src/oil-$VERSION.tar.
# centos/7
# sudo yum install gcc make
# (NOTES: yum figures out the fastest mirror)
# $ make
# build/ovm-compile.sh build-opt _build/oil/ovm _build/oil/module_init.c _build/oil/main_name.c _build/oil/c-module-srcs.txt
# ~/src/oil-0.1.alpha1/Python-2.7.13 ~/src/oil-0.1.alpha1
# Modules/posixmodule.c:3914:21: fatal error: stropts.h: No such file or directory
# #include <stropts.h>
# ^
# compilation terminated.
# Modules/fcntlmodule.c:15:21: fatal error: stropts.h: No such file or directory
# #include <stropts.h>
"$@"