Commit Graph

12 Commits

Author SHA1 Message Date
Guy
d1ece4a128 Updated Dockerfile with maintainer and contributors
Updated setup.rst with information on upgrade path if coming from an
earlier version of docker-compose images
2018-02-02 22:37:36 +01:00
Guy Addadi
d6743d7082 removed ENV WORKDIR layers, reorg the commands in groups with comments
and black lines when possible. Removed redundant mkdir command
2018-02-02 22:37:36 +01:00
Guy Addadi
54fb8665e9 moved to alpine:3.7 removed RUN layers to save image space, removed
redundant mkdir commands
2018-02-02 22:37:35 +01:00
Guy Addadi
e31dde3983 added bash and moved all dev packages to be with virtual alpine env that
is removed after python libraries installation
2018-02-02 22:37:35 +01:00
Guy Addadi
e41683deb4 adapted Dockerfile for alpine image 2018-02-02 22:37:35 +01:00
Sven Fischer
d4e972e96f Docker: review fix: if end-user host-mounts the export directory 2017-05-02 19:06:01 +02:00
Sven Fischer
11096e1393 Docker: prepare export directory 2017-05-02 13:01:09 +02:00
Jamie Magee
ffd198de28 Use latest Python 3.5
`python:3.5` matches to the latest 3.5.x version. See https://hub.docker.com/_/python/ for more info
2016-08-16 17:24:47 +02:00
Pit Kleyersburg
fb36a49c26 Add unpaper as another pre-processing step 2016-03-06 15:30:37 +01:00
Pit Kleyersburg
9180ad78c4 Update Dockerfile to match latest version 2016-03-06 14:49:25 +01: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