forked from adaptlearning/adapt_authoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvagrant_setup_win.sh
50 lines (41 loc) · 1.52 KB
/
vagrant_setup_win.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
#!/bin/bash
#
# This script handles the provisioning of software for windows machines.
cd /vagrant/
# copy the authoring_tool into the VM box
# move to /home/vagrant/
mv conf frontend lib plugins routes test test_frontend .editorconfig .gitignore config.js Gruntfile.js index.js install.js package.json server.js upgrade.js version.json /home/vagrant/
# need this ppa for ffmpeg on trusty tahr
add-apt-repository ppa:mc3man/trusty-media
apt-get update
apt-get dist-upgrade
apt-get install -y build-essential libssl-dev
apt-get install -y git
apt-get install -y mongodb
apt-get install -y ffmpeg
# install nodejs via nodesource
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
apt-get install -y nodejs
# npm needs some swap space, else it fails
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
# update npm version
# sudo npm install npm -g
# global npm dependencies
npm install -g pm2
npm install -g grunt-cli
npm install -g adapt-cli
# navigate to the AT src
cd /home/vagrant/
# run the install with some default configuration settings
# url: http://localhost:5000
# username: admin
# password: password
npm install --production
node install --install Y --serverPort 5000 --serverName localhost --dbHost localhost \
--dbName adapt-tenant-master --dbPort 27017 \
--dataRoot data --sessionSecret your-session-secret --useffmpeg Y \
--smtpService dummy --smtpUsername smtpUser --smtpPassword smtpPass --fromAddress [email protected] \
--name master --displayName Master --email admin --password password