Last active
April 11, 2017 06:50
-
-
Save sijpkes/5607f0badf056adf763a15d3691bab1f to your computer and use it in GitHub Desktop.
rough shell script and instructions for setting up a fully usable Blackboard DEV instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir my-blackboard-dir/ | |
cd my-blackboard-dir | |
# put the box file in this folder | |
cp/mv my-blackboard-vm.box . #from wherever | |
vagrant box add my-blackboard-vm.box --name NameForMyBox | |
vagrant plugin install vagrant-triggers | |
# add the Vagrantfile below | |
#setup a REST application at https://developer.blackboard.com/portal/applications | |
#login to your blackboard instance and setup LTI and REST application | |
user: administrator | |
password: password | |
# Mark O'Neil's python magic | |
git clone git@github.com:blackboard/BBDN-LearnObjectGen_Python.git | |
virtualenv -p `which python3` BBDN-LearnObjectGen_Python/ | |
source bin/activate | |
python learnObjectGen.py -t localhost:9877 | |
# IMPORTANT - finally, take a snapshot of the populated BB instance, | |
# the posgres database seems to get corrupted very easily, so you can always revert to the clean snapshot. | |
### Vagrantfile #### | |
Vagrant.configure("2") do |config| | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "4096"] | |
end | |
config.trigger.before :halt do | |
info "Stopping Blackboard Learn, Tomcant and Postgres before destroying the VM..." | |
run_remote "sudo bash /usr/local/blackboard/tools/admin/ServiceController.sh services.stop" | |
end | |
config.ssh.password = "vagrant" | |
config.vm.box = 'BlackboardLearn-Apr17' | |
config.vm.box_url = 'bb-learn-9.1-Q4-2016/bb-learn-9.1-Q4-2016.box' | |
config.vm.network "private_network", ip: "172.28.128.3", virtualbox__intnet: true | |
config.vm.network :forwarded_port, guest: 8080, host: 9876 | |
config.vm.network :forwarded_port, guest: 8443, host: 9877 | |
config.vm.network :forwarded_port, guest: 2222, host: 9878 | |
config.vm.network :forwarded_port, guest: 5432, host: 9879 | |
config.vm.network :forwarded_port, guest: 25, host: 2525 | |
config.vm.provision "shell", | |
inline: "sudo /usr/local/blackboard/tools/admin/ServiceController.sh services.start" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment