63 Commits

Author SHA1 Message Date
Daniel Quinn
cb2df58b27 Everything appears to be working 2016-03-28 19:47:11 +01:00
Pit Kleyersburg
fb36a49c26 Add unpaper as another pre-processing step 2016-03-06 15:30:37 +01:00
Daniel Quinn
1ffce8f52d Documented the API and added some help for the config file 2016-03-04 23:59:13 +00:00
Daniel Quinn
66d4407565 #68: Using dotenv for a proper unix config file 2016-03-03 18:01:02 +00:00
Daniel Quinn
0aead1fbe6 #68: Using dotenv for a proper unix config file 2016-03-03 17:59:27 +00:00
Daniel Quinn
4d685ee424 Merge branch 'master' of github.com:danielquinn/paperless 2016-03-03 11:00:58 +00:00
Daniel Quinn
dd3bdcb956 Updated the Vagrant tools to use environment variables 2016-03-03 11:00:46 +00:00
Pit Kleyersburg
21cd4e9f14 Update env-var in Dockerfile, fix volume names 2016-03-02 09:10:52 +01:00
Pit Kleyersburg
724afa59c7 Add Dockerfile for application and documentation
This commit adds a `Dockerfile` to the root of the project, accompanied
by a `docker-compose.yml.example` for simplified deployment. The
`Dockerfile` is agnostic to whether it will be the webserver, the
consumer, or if it is run for a one-off command (i.e. creation of a
superuser, migration of the database, document export, ...).

The containers entrypoint is the `scripts/docker-entrypoint.sh` script.
This script verifies that the required permissions are set, remaps the
default users and/or groups id if required and installs additional
languages if the user wishes to.

After initialization, it analyzes the command the user supplied:

  - If the command starts with a slash, it is expected that the user
    wants to execute a binary file and the command will be executed
    without further intervention. (Using `exec` to effectively replace
    the started shell-script and not have any reaping-issues.)

  - If the command does not start with a slash, the command will be
    passed directly to the `manage.py` script without further
    modification. (Again using `exec`.)

The default command is set to `--help`.

If the user wants to execute a command that is not meant for `manage.py`
but doesn't start with a slash, the Docker `--entrypoint` parameter can
be used to circumvent the mechanics of `docker-entrypoint.sh`.

Further information can be found in `docs/setup.rst` and in
`docs/migrating.rst`.

For additional convenience, a `Dockerfile` has been added to the `docs/`
directory which allows for easy building and serving of the
documentation. This is documented in `docs/requirements.rst`.
2016-02-18 22:58:32 +01:00
Sharif Nassar
6115b2f03d Add other prerequisites
Vagrant setup didn't work for me unless I manually installed tesseract and ImageMagick.
2016-02-09 01:07:48 -08:00
Daniel Quinn
0612cd53b7 Moved the Vagrant stuff around to keep the root tidy 2016-01-24 21:35:05 +01:00
Daniel Quinn
17615d43cb Fixed a few consumer bugs and added an exporter
Rename exporter to export and fixt some debugging

Account for files not matching the sender/title pattern

Added a safety note

Wrong regex on the name parser

Renamed the command to something slightly less ambiguous
2016-01-15 18:14:42 +00:00
Daniel Quinn
6d095910eb Systemd serfice units 2016-01-10 23:17:31 +00:00