You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEPLOY.rst
+38-10Lines changed: 38 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,22 +17,51 @@ If you do not have Docker installed, take a look at `this tutorial on how to ins
17
17
See also the `tutorial on how to install Docker Compose <https://docs.docker.com/compose/install/>`_.
18
18
19
19
20
+
Compatibility
21
+
-------------
22
+
23
+
Before deploy/install ``Cube-Builder``, please, take a look into compatibility table:
24
+
25
+
+--------------+-------------+
26
+
| Cube-Builder | BDC-Catalog |
27
+
+==============+=============+
28
+
| 0.8.x | 0.8.2 |
29
+
+--------------+-------------+
30
+
| 0.4.x, 0.6.x | 0.8.1 |
31
+
+--------------+-------------+
32
+
| 0.2.x | 0.2.x |
33
+
+--------------+-------------+
34
+
35
+
20
36
Configuration
21
37
-------------
22
38
23
-
docker-compose.yml
24
-
~~~~~~~~~~~~~~~~~~
39
+
Before proceed to the ``DEPLOY`` step, we have prepared a minimal ``docker-compose.yml`` file
40
+
with config to launch ``Cube-Builder``.
41
+
By default, it will generate data cubes in directories ``./volumes/data`` and ``./volumes/workdir``, respectively.
42
+
You may set a different location editing the ``docker-compose.yml`` file. Please refer to the page :doc:`configuration`
43
+
for further details.
25
44
26
-
Open and edit **docker-compose.yml** with the following variables:
45
+
.. note::
27
46
28
-
1. **DATA_DIR** - Path to store collections.
29
-
2. **SQLALCHEMY_DATABASE_URI** - Database URI.
30
-
3. **RABBIT_MQ_URL** - URI to connect on RabbitMQ protocol.
47
+
Take a look into ``docker-compose.yml`` the variables ``DATA_DIR`` and ``WORK_DIR``
48
+
and make sure you have enough space in disk for data cubes.
31
49
32
50
33
51
Running the Docker Containers
34
52
-----------------------------
35
53
54
+
.. note::
55
+
56
+
Make sure you have a machine with at least the following requirements:
57
+
58
+
- 4 vCPU or more
59
+
- 8 GB RAM
60
+
- 40 GB free space
61
+
62
+
It may change according the type/volume size of collections used to generate data cube.
63
+
64
+
36
65
.. note::
37
66
38
67
If you do not have a PostgreSQL instance with the Brazil Data Cube data model up and running, you will need to prepare one before following the rest of this documentation.
@@ -99,14 +128,13 @@ If the above command runs successfully, you will be able to list the launched co
99
128
100
129
.. note::
101
130
102
-
Refer to the `USING.rst <USING.rst>`_ documentation in order to use the cube builder services.
131
+
Refer to the page :doc:`usage` documentation in order to use the cube builder services.
103
132
104
133
105
134
.. rubric:: Footnotes
106
135
107
136
.. [#f1]
108
137
109
-
|For now you will need to login into the BDC registry:
138
+
|By default, the docker compose will try to build a new Docker image
139
+
|If you have account in the BDC registry, you may use as following:
110
140
|``$ docker login registry.dpi.inpe.br``
111
-
|
112
-
|In the next releases we will get ride of this internal registry.
cube-builder worker -l INFO --concurrency 8 -Q default,merge-cube,prepare-cube,blend-cube,publish-cube
152
174
153
175
@@ -161,12 +183,15 @@ You may need to replace the definition of some parameters:
161
183
162
184
.. note::
163
185
164
-
The command line ``cube-builder worker`` is an auxiliary tool that wraps celery command line using ``cube_builder`` as context. In this way, all ``celery worker`` parameters are currently supported. See more in `Celery Workers Guide <https://docs.celeryproject.org/en/stable/userguide/workers.html>`_.
186
+
The command line ``cube-builder worker`` is an auxiliary tool that wraps celery command line
187
+
using ``cube_builder`` as context. In this way, all ``celery worker`` parameters are currently supported.
188
+
See more in `Celery Workers Guide <https://docs.celeryproject.org/en/stable/userguide/workers.html>`_.
165
189
166
190
167
191
.. warning::
168
192
169
-
The ``Cube Builder`` can use a lot of memory for each concurrent process, since it opens multiple images in memory. You can limit the concurrent processes in order to prevent it.
193
+
The ``Cube Builder`` can use a lot of memory for each concurrent process, since it opens multiple images in memory.
194
+
You can limit the concurrent processes in order to prevent it.
0 commit comments