CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/config/templates/config-vagrant.conf
Views: 3957
1
# DO NOT EDIT THIS FILE
2
#
3
# This is a Vagrant launcher file. To set up the configuration, use command line arguments to compile.sh
4
5
# remove "vagrant" from the command line
6
shift
7
8
# second argument can be a build parameter or a config file
9
unset VAGRANT_CONF
10
[[ $1 != *=* ]] && VAGRANT_CONF=$1
11
12
display_alert "Building and running the Vagrant box"
13
VAGRANT_INSTALL_LOCAL_PLUGINS=1 vagrant up || vagrant up
14
15
display_alert "SSH config for the Vagrant box"
16
vagrant ssh-config
17
18
display_alert "Trying to connect using SSH"
19
20
IFS=' ' vagrant ssh -c "cd armbian; sudo ./compile.sh $VAGRANT_CONF $*"
21
22
display_alert "Press <Enter> to halt the Vagrant box"
23
read
24
vagrant halt
25
26
# don't need to proceed further on the host
27
exit 0
28
29