Mercurial > hg > orthanc-book
annotate Sphinx/source/users/docker-osimis.rst @ 809:23f21a00b03b
updated collect log procedure for windows
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 14 Feb 2022 08:48:23 +0100 |
parents | 0e9f934fff44 |
children | f4bbb4a7d78a |
rev | line source |
---|---|
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
1 .. _docker-osimis: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
2 .. highlight:: bash |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
3 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
4 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
5 Osimis Orthanc Docker images |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
6 ============================ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
7 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
8 .. contents:: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
9 :depth: 3 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
10 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
11 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
12 .. warning:: This documentation applies to ``osimis/orthanc`` images from the ``20.4.2`` version. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
13 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
14 Note that these images have been re-written in April 2020. The documentation |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
15 for older images is still available `here <https://osimis.atlassian.net/wiki/spaces/OKB/pages/26738689/How+to+use+osimis+orthanc+Docker+images#Howtouseosimis/orthancDockerimages>`__ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
16 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
17 The new images are backward compatible with the previous images except for the |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
18 Google Cloud Platform configuration. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
19 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
20 However, if you're still using legacy environment variables, you'll get some warning |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
21 encouraging you to update to the new namings since the backward compatibility |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
22 might be removed one day (currently planed in June 2021). |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
23 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
24 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
25 Introduction |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
26 ------------ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
27 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
28 Our commercial partner `Osimis <https://www.osimis.io>`__ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
29 `publishes separated Docker images |
636
0e9f934fff44
fix path to DockerHub Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
575
diff
changeset
|
30 <https://hub.docker.com/r/osimis/orthanc>`__ |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
31 that are used by their technical team in order to provide professional |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
32 support to their customers. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
33 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
34 These images have been designed to be used with ``docker-compose`` and |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
35 provide a configuration system through: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
36 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
37 - environment variables |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
38 - Docker secrets |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
39 - classical configuration files |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
40 - a mix of these options |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
41 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
42 This `repository <https://bitbucket.org/osimis/orthanc-setup-samples/src>`__ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
43 contains lots of examples on how to use these images. In particular, |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
44 `this example <https://bitbucket.org/osimis/orthanc-setup-samples/src/master/docker/all-usages/docker-compose.yml>`__ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
45 shows all the way that can be used to generate the same |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
46 configuration in Orthanc. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
47 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
48 |
575 | 49 Environment variables |
50 --------------------- | |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
51 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
52 Any part of the Orthanc configuration file can be configured through an |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
53 environment variable. Now that Orthanc and its plugins have hundreds of |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
54 configuration parameter, listing all these environment variable would be |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
55 too long. That's why we have defined a standard way of naming the variable: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
56 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
57 +---------------------------+----------------------------------------------+----------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
58 | Orthanc configuration | Environment variable | Sample value | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
59 +===========================+==============================================+================================================================+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
60 | StableAge | ORTHANC__STABLE_AGE | ``30`` | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
61 +---------------------------+----------------------------------------------+----------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
62 | DicomWeb.Root | ORTHANC__DICOM_WEB__ROOT | ``/dicom-web/`` | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
63 +---------------------------+----------------------------------------------+----------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
64 | DicomWeb.Servers | ORTHANC__DICOM_WEB__SERVERS | ``{"sample": [ "http://127.0.0.1/dicom-web/"]}`` | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
65 +---------------------------+----------------------------------------------+----------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
66 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
67 To find out an environment variable name from an Orthanc setting |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
68 (i.e. ``DicomWeb.StudiesMetadata`` is the ``path`` to a setting): |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
69 |
575 | 70 - whenever a word contains a capital letter, insert an underscore ``_`` in front. |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
71 ``DicomWeb.StudiesMetadata`` now becomes ``Dicom_Web.Studies_Metadata`` |
575 | 72 - whenever you go down one level in the JSON configuration, insert |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
73 a double underscore ``__``. ``Dicom_Web.Studies_Metadata`` now becomes |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
74 ``Dicom_Web__Studies_Metadata`` |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
75 - capitalize all letters. ``Dicom_Web__Studies_Metadata`` now becomes |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
76 ``DICOM_WEB__STUDIES_METADATA`` |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
77 - add ``ORTHANC__`` in front. ``DICOM_WEB__STUDIES_METADATA`` now becomes |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
78 ``ORTHANC__DICOM_WEB__STUDIES_METADATA`` |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
79 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
80 Note that, this automatic rule might fail because of 2 capital letters one after each other in some |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
81 Orthanc settings. Therefore, there are some `exceptions <https://bitbucket.org/osimis/orthanc-builder/src/master/docker/orthanc/env-var-non-standards.json>`__ to this rule |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
82 that are however quite intuitive. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
83 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
84 Special environment variables |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
85 ----------------------------- |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
86 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
87 Other environment variables are not related to the Orthanc configuration file |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
88 but can be specified to control the way Orthanc is run. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
89 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
90 - ``VERBOSE_STARTUP=true`` will allow you to debug the startup process and see |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
91 the configuration that has been provided to Orthanc. This setup should be |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
92 disabled in production since it might display secret information like passwords |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
93 in your logs |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
94 - ``VERBOSE_ENABLED=true`` will start Orthanc with the ``--verbose`` option |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
95 - ``TRACE_ENABLED=true`` will start Orthanc with the ``--trace`` option |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
96 - ``NO_JOBS=true`` will start Orthanc with the ``--no-jobs`` option |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
97 - ``UNLOCK=true`` will start Orthanc with the ``--unlock`` option |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
98 - ``MALLOC_ARENA_MAX=10`` will :ref:`control memory usage <scalability-memory>` |
575 | 99 - ``ORTHANC_JSON`` can be used to pass a JSON "root" configuration (see below). |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
100 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
101 Configuration files |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
102 ------------------- |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
103 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
104 .. highlight:: yaml |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
105 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
106 Configuration files should be stored in the ``/etc/orthanc/`` folder inside the Docker image. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
107 This is done by building an image thanks to a ``Dockerfile``:: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
108 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
109 FROM osimis/orthanc |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
110 COPY orthanc.json /etc/orthanc/ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
111 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
112 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
113 Configuration files can also be passed as secrets as shown in this ``docker-compose.yml``:: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
114 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
115 version: "3.3" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
116 services: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
117 orthanc-file-in-secrets: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
118 image: osimis/orthanc |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
119 depends_on: [index-db] |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
120 ports: ["8201:8042"] |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
121 environment: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
122 VERBOSE_STARTUP: "true" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
123 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
124 secrets: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
125 - orthanc.secret.json |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
126 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
127 secrets: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
128 orthanc.secret.json: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
129 file: orthanc.secret.json |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
130 |
575 | 131 Finally, a whole configuration file can be passed as a JSON through the ``ORTHANC_JSON`` environment variable:: |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
132 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
133 version: "3.3" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
134 services: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
135 orthanc-file-in-env-var: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
136 image: osimis/orthanc |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
137 depends_on: [index-db] |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
138 ports: ["8200:8042"] |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
139 environment: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
140 VERBOSE_ENABLED: "true" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
141 OSIMIS_WEB_VIEWER1_PLUGIN_ENABLED: "true" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
142 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
143 ORTHANC_JSON: | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
144 { |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
145 "Name": "orthanc-file-in-env-var", |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
146 "PostgreSQL" : { |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
147 "Host": "index-db", |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
148 "Password": "pg-password" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
149 }, |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
150 "RegisteredUsers": { |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
151 "demo": "demo" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
152 } |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
153 } |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
154 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
155 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
156 Docker secrets |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
157 -------------- |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
158 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
159 .. highlight:: yaml |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
160 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
161 When using your container in a ``Docker Swarm`` or ``Kubernetes`` environment, |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
162 it is usually advised to pass sensitive information through ``Docker Secrets``. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
163 For this purpose, any secret whose name is similar to the name of an |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
164 environment variable is considered as an environment variable:: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
165 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
166 version: "3.3" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
167 services: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
168 orthanc-with-direct-secret: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
169 image: osimis/orthanc |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
170 depends_on: [index-db] |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
171 ports: ["8003:8042"] |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
172 environment: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
173 ORTHANC__NAME: "orthanc-with-direct-secret" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
174 VERBOSE_ENABLED: "true" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
175 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
176 OSIMIS_WEB_VIEWER1_PLUGIN_ENABLED: "true" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
177 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
178 ORTHANC__POSTGRESQL__HOST: "index-db" |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
179 ORTHANC__REGISTERED_USERS: | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
180 {"demo": "demo"} |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
181 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
182 secrets: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
183 - ORTHANC__POSTGRESQL__PASSWORD |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
184 secrets: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
185 ORTHANC__POSTGRESQL__PASSWORD: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
186 file: ORTHANC__POSTGRESQL__PASSWORD |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
187 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
188 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
189 Mixing configuration |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
190 -------------------- |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
191 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
192 Parts of your configuration can be defined in a configuration file, |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
193 another part in an environment variable and yet another in a secret. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
194 If the same setting is defined in multiple location, the latest one |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
195 will overwrite the first. Settings are evaluated in this order: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
196 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
197 - JSON files from ``/etc/orthanc/`` |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
198 - JSON files from ``/run/secrets`` (Docker secrets are copied there |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
199 by Docker) |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
200 - environment variables |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
201 - secret environment variables |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
202 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
203 At this point, if some settings have not been defined yet, some defaults |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
204 are applied (see below). |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
205 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
206 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
207 Default configuration |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
208 --------------------- |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
209 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
210 .. highlight:: json |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
211 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
212 Orthanc and each plugin might have some default settings that might |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
213 eventually be different from the defaults included in the Orthanc |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
214 executable or the plugin library. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
215 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
216 .. below json is copied from orthanc-builder/docker/orthanc/orthanc-defaults.json |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
217 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
218 Orthanc non-standard defaults:: |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
219 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
220 { |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
221 "StorageDirectory" : "/var/lib/orthanc/db", |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
222 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
223 "RemoteAccessAllowed": true, |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
224 "AuthenticationEnabled": true, |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
225 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
226 "HttpsCACertificates" : "/etc/ssl/certs/ca-certificates.crt", |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
227 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
228 "Plugins" : ["/usr/share/orthanc/plugins/"] |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
229 } |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
230 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
231 |
575 | 232 Default Lua scripts |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
233 ------------------- |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
234 |
575 | 235 Some Lua scripts are already loaded in the image but are not configured to |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
236 be loaded by Orthanc automatically. You'll have to add them to the ``"LuaScripts"`` |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
237 configuration if you want to use them. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
238 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
239 `/lua-scripts/filter-http-tools-reset.lua <https://bitbucket.org/osimis/orthanc-builder/src/master/docker/orthanc/filter-http-tools-reset.lua>`__ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
240 can be used to regenerate the ``/tmp/orthanc.json`` configuration file that is loaded by Orthanc every time |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
241 you POST to ``/tools/reset``. Note that it declares an ``IncomingHttpRequestFilter`` |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
242 callback that might conflict with your scripts. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
243 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
244 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
245 Plugins |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
246 ------- |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
247 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
248 Plugins are automatically enabled as soon as you define a setting |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
249 in their JSON section or as soon as you define to ``true`` their |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
250 specific environment variable. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
251 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
252 Below is a list of all plugins, their environment variable and their default configuration |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
253 (only when their default configuration is different from the plugin defaults): |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
254 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
255 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
256 .. below table is obtained by running orthanc-builder/docker/orthanc/generatePluginDoc.py |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
257 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
258 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
259 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
260 | Plugin | Environment variable | Default configuration | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
261 +==================================================+==================================================+====================================================================================================+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
262 | **Authorization** | ``AUTHORIZATION_PLUGIN_ENABLED`` | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
263 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
264 | **ConnectivityChecks** | ``CONNECTIVITY_CHECKS_PLUGIN_ENABLED`` | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
265 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
266 | **DicomWeb** | ``DICOM_WEB_PLUGIN_ENABLED`` | .. code-block:: json | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
267 | | | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
268 | | | { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
269 | | | "DicomWeb": { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
270 | | | "Enable": true | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
271 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
272 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
273 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
274 | **Gdcm** | ``GDCM_PLUGIN_ENABLED`` | .. code-block:: json | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
275 | | Note: enabled by default | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
276 | | | { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
277 | | | "Gdcm": { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
278 | | | "Throttling": 4, | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
279 | | | "RestrictTransferSyntaxes": [ | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
280 | | | "1.2.840.10008.1.2.4.90", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
281 | | | "1.2.840.10008.1.2.4.91", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
282 | | | "1.2.840.10008.1.2.4.92", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
283 | | | "1.2.840.10008.1.2.4.93" | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
284 | | | ] | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
285 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
286 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
287 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
288 | **OrthancWebViewer** | ``ORTHANC_WEB_VIEWER_PLUGIN_ENABLED`` | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
289 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
549
109c043907a1
documenting the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
497
diff
changeset
|
290 | **StoneWebViewer** | ``ORTHANC_STONE_VIEWER_PLUGIN_ENABLED`` | | |
109c043907a1
documenting the Stone Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
497
diff
changeset
|
291 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
292 | **OsimisWebViewerBasic** | ``OSIMIS_WEB_VIEWER1_PLUGIN_ENABLED`` | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
293 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
294 | **OsimisWebViewerBasicAlpha** | ``OSIMIS_WEB_VIEWER1_ALPHA_PLUGIN_ENABLED`` | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
295 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
296 | **PostgreSQL** | ``POSTGRESQL_PLUGIN_ENABLED`` | .. code-block:: json | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
297 | | | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
298 | | | { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
299 | | | "PostgreSQL": { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
300 | | | "EnableIndex": true, | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
301 | | | "EnableStorage": false, | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
302 | | | "Port": 5432, | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
303 | | | "Host": "HOST MUST BE DEFINED", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
304 | | | "Database": "postgres", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
305 | | | "Username": "postgres", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
306 | | | "Password": "postgres", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
307 | | | "EnableSsl": false, | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
308 | | | "Lock": false | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
309 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
310 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
311 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
312 | **MySQL** | ``MYSQL_PLUGIN_ENABLED`` | .. code-block:: json | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
313 | | | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
314 | | | { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
315 | | | "MySQL": { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
316 | | | "EnableIndex": true, | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
317 | | | "EnableStorage": false, | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
318 | | | "Port": 3306, | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
319 | | | "Host": "HOST MUST BE DEFINED", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
320 | | | "Database": "mysql", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
321 | | | "Username": "root", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
322 | | | "Password": "mysql", | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
323 | | | "Lock": false | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
324 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
325 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
326 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
327 | **Python** | ``PYTHON_PLUGIN_ENABLED`` | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
328 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
329 | **ServeFolders** | ``SERVE_FOLDERS_PLUGIN_ENABLED`` | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
330 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
331 | **Transfers** | ``TRANSFERS_PLUGIN_ENABLED`` | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
332 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
333 | **Worklists** | ``WORKLISTS_PLUGIN_ENABLED`` | .. code-block:: json | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
334 | | | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
335 | | | { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
336 | | | "Worklists": { | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
337 | | | "Enable": true, | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
338 | | | "Database": "/var/lib/orthanc/worklists" | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
339 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
340 | | | } | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
341 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
575 | 342 | **Whole-slide imaging** | ``WSI_PLUGIN_ENABLED`` | | |
497
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
343 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
344 | **Osimis cloud** (synchronization plugin) | ``OSIMIS_CLOUD_PLUGIN_ENABLED`` | | |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
345 +--------------------------------------------------+--------------------------------------------------+----------------------------------------------------------------------------------------------------+ |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
346 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
347 Under the hood |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
348 -------------- |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
349 |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
350 The source code that is used to generate the image can be found `here <https://bitbucket.org/osimis/orthanc-builder/src/master/docker/orthanc/Dockerfile>`__. |
a4e36bf97da3
dos2unix docker-osimis.rst
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
492
diff
changeset
|
351 |
575 | 352 The Python script that is used at startup can be found `here <https://bitbucket.org/osimis/orthanc-builder/src/master/docker/orthanc/generateConfiguration.py>`__ |