mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Merge branch 'avichalp-master'
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -67,5 +67,8 @@ db.sqlite3
 | 
			
		||||
 | 
			
		||||
# Other stuff that doesn't belong
 | 
			
		||||
virtualenv
 | 
			
		||||
 | 
			
		||||
scripts/import-for-development
 | 
			
		||||
 | 
			
		||||
# Vagrant
 | 
			
		||||
.vagrant
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										16
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#!/usr/bin/env python
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								vagrant/setup.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								vagrant/setup.sh
									
									
									
									
									
										Normal file
									
								
							@@ -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 python3-dev python3-pip sqlite3 libsqlite3-dev git
 | 
			
		||||
 | 
			
		||||
# setup python project
 | 
			
		||||
pushd /opt/paperless
 | 
			
		||||
sudo pip3 install -r requirements.txt
 | 
			
		||||
popd
 | 
			
		||||
		Reference in New Issue
	
	Block a user