diff --git a/VAGRANT.md b/VAGRANT.md deleted file mode 100644 index e25c738951..0000000000 --- a/VAGRANT.md +++ /dev/null @@ -1,11 +0,0 @@ -# Vagrant # - -Vagrant is a system to create reproducible and portable development -environments. Because of the variety of systems used for Habitica -development and the various issues developers may encounter setting up -Habitica on them, vagrant provides a single development enviroment with -minimal dependencies on the developer's local platform. It can be used -on a variety of systems including Windows, Mac OS X, and Linux. - -Instructions for using the Habitica Vagrant environment are in -[Setting up Habitica Locally](http://habitica.fandom.com/wiki/Setting_up_Habitica_Locally). diff --git a/Vagrantfile.example b/Vagrantfile.example deleted file mode 100644 index 5507219c7f..0000000000 --- a/Vagrantfile.example +++ /dev/null @@ -1,22 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! -VAGRANTFILE_API_VERSION = "2" - -Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - config.vm.provider "virtualbox" do |v| - v.memory = 4096 - v.cpus = 1 - v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant", "1"] - end - config.vm.box = "thepeopleseason/habitrpg" - config.ssh.forward_agent = true - - config.vm.hostname = "habitrpg" - config.vm.network "forwarded_port", guest: 3000, host: 3000, auto_correct: true - config.vm.usable_port_range = (3000..3050) - config.vm.network "forwarded_port", guest: 8080, host: 8080, auto_correct: true - config.vm.usable_port_range = (8080..8130) - config.vm.provision :shell, :path => "vagrant_scripts/vagrant.sh" -end diff --git a/vagrant_scripts/install_gcc.sh b/vagrant_scripts/install_gcc.sh deleted file mode 100755 index 1eba4372c7..0000000000 --- a/vagrant_scripts/install_gcc.sh +++ /dev/null @@ -1,13 +0,0 @@ -echo Adding PPA repository for gcc... -add-apt-repository ppa:ubuntu-toolchain-r/test -apt-get update -qq - -echo Installing gcc 4.8... -apt-get install -qq gcc-4.8 g++-4.8 - -update-alternatives --remove-all gcc -update-alternatives --remove-all g++ -update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 -update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 -update-alternatives --config gcc -update-alternatives --config g++ diff --git a/vagrant_scripts/install_mongo.sh b/vagrant_scripts/install_mongo.sh deleted file mode 100755 index 4b0e244c32..0000000000 --- a/vagrant_scripts/install_mongo.sh +++ /dev/null @@ -1,11 +0,0 @@ -# Import MongoDB public GPG key -# http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 - -# Create a list file for MongoDB -echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list - -apt-get update -apt-get install mongodb-10gen -apt-get install -y mongodb-org=2.6.4 mongodb-org-server=2.6.4 mongodb-org-shell=2.6.4 mongodb-org-mongos=2.6.4 mongodb-org-tools=2.6.4 - diff --git a/vagrant_scripts/install_node.sh b/vagrant_scripts/install_node.sh deleted file mode 100755 index e27fa26e8d..0000000000 --- a/vagrant_scripts/install_node.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -echo Installing nvm... -curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | NVM_DIR="/home/vagrant/.nvm" PROFILE="/home/vagrant/.profile" bash -echo "source /home/vagrant/.nvm/nvm.sh" >> /home/vagrant/.profile -echo "nvm install" >> /home/vagrant/.profile - -chown -R vagrant:vagrant /home/vagrant/.nvm - -source /home/vagrant/.profile - -echo Setting up node... -cd /vagrant -nvm install 8 -nvm use 8 -nvm alias default current - -echo Update npm... -npm install -g npm@5 - -echo Installing global modules... -npm install -g gulp mocha node-pre-gyp diff --git a/vagrant_scripts/install_sprite_dependencies.sh b/vagrant_scripts/install_sprite_dependencies.sh deleted file mode 100755 index 181a0a203f..0000000000 --- a/vagrant_scripts/install_sprite_dependencies.sh +++ /dev/null @@ -1,8 +0,0 @@ -echo Installing GraphicsMagick - provides gm and convert... -apt-get install -qq graphicsmagick - -echo Installing phantomjs and dependency... -apt-get install -qq libicu48 - -echo Installing requirements for gulp.spritesmith... -apt-get install -qq pkg-config libcairo2-dev libjpeg-dev diff --git a/vagrant_scripts/install_test_dependencies.sh b/vagrant_scripts/install_test_dependencies.sh deleted file mode 100755 index f722397d64..0000000000 --- a/vagrant_scripts/install_test_dependencies.sh +++ /dev/null @@ -1,9 +0,0 @@ -echo Installing Xvfb... -apt-get install -qq xvfb -echo Installing Java7... -apt-get install -qq openjdk-7-jre -echo Downloading Firefox... -wget http://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_40.0.3-0ubuntu1_amd64.deb/download -O firefox.deb >/dev/null 2>&1 -echo Installing Firefox... -dpkg -i firefox.deb -rm firefox.deb diff --git a/vagrant_scripts/vagrant.sh b/vagrant_scripts/vagrant.sh deleted file mode 100644 index 7f9f90d8c7..0000000000 --- a/vagrant_scripts/vagrant.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash -# -# Habitica provisioning script - -# function for autostart -function autostart_habitrpg { - update_config=$'Please update config.json with your values\nfor ADMIN_EMAIL, SMTP_USER, SMTP_PASS and SMTP_SERVICE,\nthen run "vagrant reload --provision"' - - # check if config.json exists, then check if the defaults are still in place - if [ -e config.json ]; - then - if grep -Fq 'ADMIN_EMAIL": "you@yours.com' config.json; - then - echo "$update_config"; - exit; - else - npm start - fi - else - cp config.json.example config.json; - echo "$update_config"; - exit; - fi -} - -# Main provisioning -echo Setting up Habitica... -echo cd /vagrant >> /home/vagrant/.bashrc -# Needed for running e2e tests -echo export DISPLAY=:99 >> /home/vagrant/.bashrc - -# Prevent warnings: "dpkg-preconfigure: unable to re-open stdin ..." -export DEBIAN_FRONTEND=noninteractive - -echo Updating repositories... -apt-get update -qq - -echo Installing Unix build tools - needed for node-gyp to use make... -apt-get install -qq build-essential - -echo Installing python software properties... -apt-get install -qq python-software-properties - -echo Installing sprite dependencies... -/vagrant/vagrant_scripts/install_sprite_dependencies.sh - -echo Installing Mongodb... -/vagrant/vagrant_scripts/install_mongo.sh - -echo Installing gcc... -/vagrant/vagrant_scripts/install_gcc.sh - -echo Installing Git... -apt-get install -qq git - -echo Installing curl... -apt-get install -qq curl - -echo Installing test dependencies... -/vagrant/vagrant_scripts/install_test_dependencies.sh - -echo Installing ntp... -apt-get install -qq ntp - -echo Installing nvm, node and global node modules... -/vagrant/vagrant_scripts/install_node.sh - -echo "'vagrant up' is finished. Continue with the instructions at http://habitica.fandom.com/wiki/Setting_up_Habitica_Locally" - -# Uncomment both lines to autostart the habitica server when provisioning -# echo Starting Habitica server... -# autostart_habitrpg -