forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-vagrant.conf
30 lines (22 loc) · 891 Bytes
/
config-vagrant.conf
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
# DO NOT EDIT THIS FILE
#
# This is a Vagrant launcher file. To set up the configuration, use command line arguments to compile.sh
# or create a config file named "config-vagrant-guest.conf" based on config-example.conf
# remove "vagrant" from the command line since "vagrant-guest" will be passed instead
shift
# check and install vagrant-disksize
if ! grep -q '^vagrant-disksize' <(vagrant plugin list); then
display_alert "Trying to install vargant-disksize plugin"
vagrant plugin install vagrant-disksize
fi
display_alert "Building and running the Vagrant box"
vagrant up
display_alert "SSH config for the Vagrant box"
vagrant ssh-config
display_alert "Trying to connect using SSH"
IFS=' ' vagrant ssh -c "cd armbian; sudo ./compile.sh vagrant-guest $*"
display_alert "Press <Enter> to halt the Vagrant box"
read
vagrant halt
# don't need to proceed further on the host
exit 0