mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 15:00:16 +02:00
Remove vagrant config
It's very badly out of date making it very evident it' no longer being used.
This commit is contained in:
parent
f36b038010
commit
75b99148c6
34
vagrant/Vagrantfile
vendored
34
vagrant/Vagrantfile
vendored
@ -1,34 +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|
|
||||
# All Vagrant configuration is done here. The most common configuration
|
||||
# options are documented and commented below. For a complete reference,
|
||||
# please see the online documentation at vagrantup.com.
|
||||
|
||||
config.vm.box = "hashicorp/precise64"
|
||||
|
||||
# Note: if it complains about guest extension versions, you can manually install them
|
||||
# because each VirtualBox installation has the capability of mounting an ISO virtual
|
||||
# CD to install its guest extension from.
|
||||
|
||||
# Create a forwarded port mapping which allows access to a specific port
|
||||
# within the machine from a port on the host machine.
|
||||
config.vm.provider "virtualbox" do |v|
|
||||
v.memory = 1024
|
||||
v.cpus = 2
|
||||
end
|
||||
|
||||
config.vm.network :forwarded_port, guest: 3306, host: 3306
|
||||
config.vm.network :forwarded_port, guest: 9090, host: 9090
|
||||
config.vm.network :forwarded_port, guest: 8000, host: 8000
|
||||
|
||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||
config.vm.synced_folder "../", "/vagrant"
|
||||
|
||||
config.vm.provision :shell, :path => "bootstrap.sh"
|
||||
|
||||
end
|
@ -1,65 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
sudo add-apt-repository ppa:upubuntu-com/xampp
|
||||
|
||||
sudo apt-get update
|
||||
|
||||
sudo apt-get clean
|
||||
|
||||
sudo apt-get -y install libtool
|
||||
sudo apt-get -y install git
|
||||
sudo apt-get -y install python-dev libyaml-dev libffi-dev
|
||||
sudo apt-get -y install python-pip
|
||||
sudo apt-get -y install mysql-server mysql-client libmysqlclient-dev
|
||||
|
||||
cd /vagrant/
|
||||
|
||||
sudo pip install --upgrade pip
|
||||
|
||||
# Pip moved location after upgrade from 1.0
|
||||
sudo ln -s /usr/local/bin/pip /usr/bin/pip 2>/dev/null
|
||||
|
||||
sudo pip install --allow-external mysql-connector-python mysql-connector-python
|
||||
sudo pip install --allow-external python-openfire python-openfire==0.2.3-beta
|
||||
sudo pip install https://github.com/eve-val/evelink/zipball/master
|
||||
sudo pip install --allow-external libffi-dev libffi-dev
|
||||
|
||||
export MYSQL_ROOT_PASS=poitot
|
||||
|
||||
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password $MYSQL_ROOT_PASS"
|
||||
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password_again password $MYSQL_ROOT_PASS"
|
||||
sudo apt-get -y install mysql-server-5.5
|
||||
|
||||
#check it's up
|
||||
sudo mysqladmin status -p$MYSQL_ROOT_PASS
|
||||
|
||||
echo 'Creating databases and allianceauth user'
|
||||
sudo mysqladmin -p$MYSQL_ROOT_PASS create alliance_auth
|
||||
sudo mysqladmin -p$MYSQL_ROOT_PASS create alliance_forum
|
||||
sudo mysqladmin -p$MYSQL_ROOT_PASS create alliance_jabber
|
||||
sudo mysqladmin -p$MYSQL_ROOT_PASS create alliance_mumble
|
||||
sudo mysqladmin -p$MYSQL_ROOT_PASS create alliance_killboard
|
||||
|
||||
sudo mysql -u root -p$MYSQL_ROOT_PASS -e "CREATE USER 'allianceserver'@'localhost' IDENTIFIED BY 'password'"
|
||||
sudo mysql -u root -p$MYSQL_ROOT_PASS -e "GRANT ALL PRIVILEGES ON * . * TO 'allianceserver'@'localhost'";
|
||||
|
||||
sudo mysqladmin -p$MYSQL_ROOT_PASS flush-privileges
|
||||
|
||||
sudo apt-get -y install rabbitmq-server
|
||||
|
||||
sudo pip install -r requirements.txt
|
||||
|
||||
chmod +x *.sh
|
||||
|
||||
sudo apt-get -y install xampp
|
||||
|
||||
echo '--------'
|
||||
echo 'Almost there!'
|
||||
echo 'Next steps:\n'
|
||||
echo '1. Adjust mysql root password if you feel so inclined.'
|
||||
echo '2. Adjust all the stuff in ./alliance_auth/settings.py.'
|
||||
echo '3. Run sudo python manage.py syncdb to set up the database tables'
|
||||
echo '4. Run python manage.py shell < run_alliance_corp_update.py'
|
||||
echo "5. run cd /vagrant/; ./startup.sh to start, and ./shutdown.sh to stop."
|
||||
echo '--------'
|
@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ps ww | grep 'manage.py' | grep -v grep | awk '{print $1}' | xargs kill
|
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# TODO route log output to file.
|
||||
yes yes | python manage.py collectstatic
|
||||
python manage.py syncdb
|
||||
yes yes | python manage.py evolve --hint --execute
|
||||
|
||||
python manage.py shell < run_alliance_corp_update.py
|
||||
|
||||
python manage.py celeryd &
|
||||
python manage.py celerybeat &
|
||||
|
||||
python manage.py runserver &
|
Loading…
x
Reference in New Issue
Block a user