Mercurial > hg > orthanc-book
comparison Sphinx/source/users/docker.rst @ 394:ea7428e3761a
merge
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 21 Apr 2020 15:24:27 +0200 |
parents | 43c5a1274740 0fb9369e893e |
children | 5388a611b7eb |
comparison
equal
deleted
inserted
replaced
393:43c5a1274740 | 394:ea7428e3761a |
---|---|
65 $ docker pull jodogne/orthanc | 65 $ docker pull jodogne/orthanc |
66 | 66 |
67 If more stability is required, you can select the official release of | 67 If more stability is required, you can select the official release of |
68 Orthanc to be run:: | 68 Orthanc to be run:: |
69 | 69 |
70 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc:1.6.0 | 70 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc:1.6.1 |
71 | 71 |
72 Passing additional command-line options (e.g. to make Orthanc verbose) | 72 Passing additional command-line options (e.g. to make Orthanc verbose) |
73 can be done as follows (note the ``/etc/orthanc`` option that is | 73 can be done as follows (note the ``/etc/orthanc`` option that is |
74 required for Orthanc to find its configuration files):: | 74 required for Orthanc to find its configuration files):: |
75 | 75 |
87 | 87 |
88 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-plugins | 88 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-plugins |
89 | 89 |
90 Or you can also start a specific version of Orthanc for more stability:: | 90 Or you can also start a specific version of Orthanc for more stability:: |
91 | 91 |
92 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-plugins:1.6.0 | 92 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-plugins:1.6.1 |
93 | 93 |
94 If you have an interest in the :ref:`Python plugin <python-plugin>`, | 94 If you have an interest in the :ref:`Python plugin <python-plugin>`, |
95 you can use the ``orthanc-python`` image. The latter image is a | 95 you can use the ``orthanc-python`` image. The latter image is a |
96 heavier version of the ``orthanc-plugins`` image, as it embeds the | 96 heavier version of the ``orthanc-plugins`` image, as it embeds the |
97 Python 3.7 interpreter. Here is how to start this image:: | 97 Python 3.7 interpreter. Here is how to start this image:: |
98 | 98 |
99 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-python | 99 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-python |
100 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-python:1.6.0 | 100 $ docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc-python:1.6.1 |
101 | 101 |
102 | 102 |
103 Fine-tuning the configuration | 103 Fine-tuning the configuration |
104 ----------------------------- | 104 ----------------------------- |
105 | 105 |
147 the `YAML file format <https://en.wikipedia.org/wiki/YAML>`__):: | 147 the `YAML file format <https://en.wikipedia.org/wiki/YAML>`__):: |
148 | 148 |
149 version: '3.1' # Secrets are only available since this version of Docker Compose | 149 version: '3.1' # Secrets are only available since this version of Docker Compose |
150 services: | 150 services: |
151 orthanc: | 151 orthanc: |
152 image: jodogne/orthanc-plugins:1.6.0 | 152 image: jodogne/orthanc-plugins:1.6.1 |
153 command: /run/secrets/ # Path to the configuration files (stored as secrets) | 153 command: /run/secrets/ # Path to the configuration files (stored as secrets) |
154 ports: | 154 ports: |
155 - 8042:8042 | 155 - 8042:8042 |
156 secrets: | 156 secrets: |
157 - orthanc.json | 157 - orthanc.json |
185 deleted once the container stops). You can make the Orthanc database | 185 deleted once the container stops). You can make the Orthanc database |
186 persistent by mapping the ``/var/lib/orthanc/db`` folder of the | 186 persistent by mapping the ``/var/lib/orthanc/db`` folder of the |
187 container to some path in the filesystem of your Linux host, e.g.:: | 187 container to some path in the filesystem of your Linux host, e.g.:: |
188 | 188 |
189 $ mkdir /tmp/orthanc-db | 189 $ mkdir /tmp/orthanc-db |
190 $ docker run -p 4242:4242 -p 8042:8042 --rm -v /tmp/orthanc-db/:/var/lib/orthanc/db/ jodogne/orthanc:1.6.0 | 190 $ docker run -p 4242:4242 -p 8042:8042 --rm -v /tmp/orthanc-db/:/var/lib/orthanc/db/ jodogne/orthanc:1.6.1 |
191 | 191 |
192 | 192 |
193 Whole-slide imaging support | 193 Whole-slide imaging support |
194 --------------------------- | 194 --------------------------- |
195 | 195 |
306 * The Orthanc source code can be found in folder ``/root/orthanc``. | 306 * The Orthanc source code can be found in folder ``/root/orthanc``. |
307 | 307 |
308 * The build artifacts can be found in folder ``/root/orthanc/Build``. | 308 * The build artifacts can be found in folder ``/root/orthanc/Build``. |
309 | 309 |
310 * This command launches the mainline version. To start a released version, | 310 * This command launches the mainline version. To start a released version, |
311 use e.g. ``jodogne/orthanc-debug:1.6.0``. | 311 use e.g. ``jodogne/orthanc-debug:1.6.1``. |