diff --git a/AUTHORS b/AUTHORS index ba1816e..e049345 100644 --- a/AUTHORS +++ b/AUTHORS @@ -3,3 +3,4 @@ Julia Elman Matthew Irish Mark Ransom Jeff Triplett +Chip Warden diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..157bb0b --- /dev/null +++ b/README.markdown @@ -0,0 +1,18 @@ +# PYTHONKC.COM WEBSITE + +Files for the PythonKC.com website. + +## Development Quickstart +``` +mkvirtualenv pythonkc +git clone git@github.com:pythonkc/pythonkc.com.git +cd pythonkc.com/pythonkc_site +pip install -r requirements/project.txt +python manage.py runserver +``` + +Profit! $$$ + +## More Detailed Instructions + +See: docs/local_development diff --git a/README.rst b/README.rst deleted file mode 100644 index e6105ae..0000000 --- a/README.rst +++ /dev/null @@ -1,21 +0,0 @@ -PYTHONKC.COM WEBSITE -==================== - -Files for the PythonKC.com website. - -Development Quickstart ----------------------- -:: - - mkvirtualenv pythonkc - git clone git@github.com:pythonkc/pythonkc.com.git - cd pythonkc.com/pythonkc_site - pip install -r requirements/project.txt - python manage.py runserver - -Profit! $$$ - -More Detailed Instructions --------------------------- - -See: docs/local_development diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..724d483 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,34 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +VAGRANTFILE_API_VERSION = "2" + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + + # vagrant-hostmanager plugin is required + unless Vagrant.has_plugin?("vagrant-hostmanager") + raise 'vagrant-hostmanager is not installed. run: vagrant plugin install vagrant-hostmanager' + end + + # vagrant-vbguest plugin is required + unless Vagrant.has_plugin?("vagrant-vbguest") + raise 'vagrant-vbguest is not installed. run: vagrant plugin install vagrant-vbguest' + end + + config.vm.define "pythonkcdotdev" do |pythonkcdotdev| + pythonkcdotdev.vm.box = "box-cutter/debian81" + pythonkcdotdev.vm.hostname = "pythonkc.dev" + pythonkcdotdev.vm.network "private_network", ip: "192.168.100.101" + pythonkcdotdev.vm.synced_folder "./", "/vagrant/" + pythonkcdotdev.vm.synced_folder "./pythonkc_site", "/var/www/pythonkc_site" + # TODO: Create a synced folder location for Ansible playbooks + + pythonkcdotdev.vm.provider "virtualbox" do |vb| + vb.name = "pythonkcdotdev" + vb.memory = 1024 + vb.cpus = 2 + vb.customize ["modifyvm", :id, "--cpuexecutioncap", "80"] + end + pythonkcdotdev.vm.provision :shell, :path => "provision.sh" + end +end diff --git a/provision.sh b/provision.sh new file mode 100644 index 0000000..0767aae --- /dev/null +++ b/provision.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# -*- coding: utf-8 -*- + +export DEBIAN_FRONTEND=noninteractive + +aptitude update +aptitude dist-upgrade -y +aptitude install -y python3 python3-dev python3-pip ansible +ln -sf /vagrant /home/vagrant/ +# TODO: Run Ansible playbooks