summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2018-02-24 12:22:54 +1100
committerStephen Finucane <stephen@that.guru>2018-02-27 11:25:29 +0000
commit2c92985a2ea96be524e1b3a98fc0fd708eb2ee31 (patch)
tree8fbe6f534d5503897ff237c6661d3b0523da9721 /tools
parentebab733abad4648e8d1c3c95c095bca8bc86b644 (diff)
downloadpatchwork-2c92985a2ea96be524e1b3a98fc0fd708eb2ee31.tar
patchwork-2c92985a2ea96be524e1b3a98fc0fd708eb2ee31.tar.gz
tools: drop vagrant
It served us well, but it's now outdated (Trusty, Python 3.4, etc) There is no indication that anyone uses it or keeps it up to date. Signed-off-by: Daniel Axtens <dja@axtens.net> Acked-by: Stephen Finucane <stephen@that.guru> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/vagrant/install.sh73
1 files changed, 0 insertions, 73 deletions
diff --git a/tools/vagrant/install.sh b/tools/vagrant/install.sh
deleted file mode 100644
index a930ddc..0000000
--- a/tools/vagrant/install.sh
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/bash
-
-# Script to set up Patchwork on a Vagrant-powered Ubuntu Trusty host
-
-echo -e "\n--- Configuring environment ---\n"
-
-PROJECT_HOME=/vagrant
-
-db_user=root
-db_pass=password
-
-export DJANGO_SETTINGS_MODULE=patchwork.settings.dev
-export DEBIAN_FRONTEND=noninteractive
-
-echo "mysql-server mysql-server/root_password password $db_pass" | debconf-set-selections
-echo "mysql-server mysql-server/root_password_again password $db_pass" | debconf-set-selections
-
-echo -e "\n--- Updating packages list ---\n"
-
-apt-get update -qq
-
-echo -e "\n--- Installing system packages ---\n"
-
-apt-get install -y python python3-dev python3-pip mysql-server \
- libmysqlclient-dev curl > /dev/null
-
-echo -e "\n--- Installing Python dependencies ---\n"
-
-pip3 -q install virtualenv tox
-pip3 -q install -r $PROJECT_HOME/requirements-dev.txt
-
-echo -e "\n--- Configuring database ---\n"
-
-mysql -u$db_user -p$db_pass << EOF
-DROP DATABASE IF EXISTS patchwork;
-CREATE DATABASE patchwork CHARACTER SET utf8;
-GRANT ALL ON patchwork.* TO 'patchwork'@'localhost' IDENTIFIED BY 'password';
-EOF
-
-chmod a+x $PROJECT_HOME/manage.py
-
-echo -e "\n--- Loading initial data ---\n"
-
-sudo -E -u vagrant python3 $PROJECT_HOME/manage.py migrate > /dev/null
-sudo -E -u vagrant python3 $PROJECT_HOME/manage.py loaddata \
- default_tags > /dev/null
-sudo -E -u vagrant python3 $PROJECT_HOME/manage.py loaddata \
- default_states > /dev/null
-sudo -E -u vagrant python3 $PROJECT_HOME/manage.py loaddata \
- default_projects > /dev/null
-
-echo -e "\n--- Configuring environment ---\n"
-
-cat >> /home/vagrant/.bashrc << EOF
-export DJANGO_SETTINGS_MODULE='patchwork.settings.dev'
-
-alias runserver='python3 /vagrant/manage.py runserver 0.0.0.0:8000'
-alias createsu='python3 /vagrant/manage.py createsuperuser'
-cd /vagrant
-EOF
-
-echo "Done."
-echo "You may now log in:"
-echo " $ vagrant ssh"
-echo "Once logged in, start the server using the 'runserver' alias:"
-echo " $ runserver"
-echo "You may wish to create a superuser for use with the admin console:"
-echo " $ createsuperuser"
-echo "For information on the above, and some examples on loading sample date,"
-echo "please refer to the documentation found in the 'doc' folder."
-echo "Alternatively, check out the docs online:"
-echo " https://patchwork.readthedocs.io/en/latest/development/"
-echo "Happy patchworking."