Skip to content

Commit fe64620

Browse files
committed
Merge pull request #12 from pythonkc/add_vagrantfile
Added Vagrantfile, provision.sh, and made some minor changes.
2 parents 1e47cda + e6be00e commit fe64620

File tree

5 files changed

+63
-21
lines changed

5 files changed

+63
-21
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Julia Elman
33
Matthew Irish
44
Mark Ransom
55
Jeff Triplett
6+
Chip Warden

README.markdown

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# PYTHONKC.COM WEBSITE
2+
3+
Files for the PythonKC.com website.
4+
5+
## Development Quickstart
6+
```
7+
mkvirtualenv pythonkc
8+
git clone git@github.com:pythonkc/pythonkc.com.git
9+
cd pythonkc.com/pythonkc_site
10+
pip install -r requirements/project.txt
11+
python manage.py runserver
12+
```
13+
14+
Profit! $$$
15+
16+
## More Detailed Instructions
17+
18+
See: docs/local_development

README.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

Vagrantfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
VAGRANTFILE_API_VERSION = "2"
5+
6+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7+
8+
# vagrant-hostmanager plugin is required
9+
unless Vagrant.has_plugin?("vagrant-hostmanager")
10+
raise 'vagrant-hostmanager is not installed. run: vagrant plugin install vagrant-hostmanager'
11+
end
12+
13+
# vagrant-vbguest plugin is required
14+
unless Vagrant.has_plugin?("vagrant-vbguest")
15+
raise 'vagrant-vbguest is not installed. run: vagrant plugin install vagrant-vbguest'
16+
end
17+
18+
config.vm.define "pythonkcdotdev" do |pythonkcdotdev|
19+
pythonkcdotdev.vm.box = "box-cutter/debian81"
20+
pythonkcdotdev.vm.hostname = "pythonkc.dev"
21+
pythonkcdotdev.vm.network "private_network", ip: "192.168.100.101"
22+
pythonkcdotdev.vm.synced_folder "./", "/vagrant/"
23+
pythonkcdotdev.vm.synced_folder "./pythonkc_site", "/var/www/pythonkc_site"
24+
# TODO: Create a synced folder location for Ansible playbooks
25+
26+
pythonkcdotdev.vm.provider "virtualbox" do |vb|
27+
vb.name = "pythonkcdotdev"
28+
vb.memory = 1024
29+
vb.cpus = 2
30+
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "80"]
31+
end
32+
pythonkcdotdev.vm.provision :shell, :path => "provision.sh"
33+
end
34+
end

provision.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
# -*- coding: utf-8 -*-
3+
4+
export DEBIAN_FRONTEND=noninteractive
5+
6+
aptitude update
7+
aptitude dist-upgrade -y
8+
aptitude install -y python3 python3-dev python3-pip ansible
9+
ln -sf /vagrant /home/vagrant/
10+
# TODO: Run Ansible playbooks

0 commit comments

Comments
 (0)