Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
adds Vagrantfile and setup script to setup the project
Browse files Browse the repository at this point in the history
  • Loading branch information
avichalp committed Jan 23, 2016
1 parent 669cf1c commit cb8fb4a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,8 @@ db.sqlite3

# Other stuff that doesn't belong
virtualenv

scripts/import-for-development

# Vagrant
.vagrant
16 changes: 16 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANT_API_VERSION = "2"
Vagrant.configure(VAGRANT_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"

# Provision using shell
#config.vm.provision "shell", path: "vagrant/setup.sh"
config.vm.host_name = "dev.paperless"
config.vm.synced_folder ".", "/opt/paperless"
config.vm.provision "shell", path: "vagrant/setup.sh"

# Networking details
config.vm.network "private_network", ip: "172.28.128.4"
end
12 changes: 12 additions & 0 deletions vagrant/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# install packages
sudo apt-get update
sudo apt-get build-dep -y python-imaging
sudo apt-get install -y libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
sudo apt-get install -y build-essential python-dev python-pip sqlite3 libsqlite3-dev git

# setup python project
pushd /opt/paperless
sudo pip install -r requirements.txt
popd

0 comments on commit cb8fb4a

Please sign in to comment.