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: README.md
+42-10Lines changed: 42 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,42 @@
3
3
geOrchestra Maelstro is an application which helps synchronise geonetwork and geoserver instances
4
4
5
5
## Docker deploy
6
+
7
+
### Solo quick start (without included geOrchestra composition)
8
+
9
+
Maelstro can be used outside geOrchestra.
10
+
11
+
First select the `docker-compose-solo.yml` file as current composition:
12
+
13
+
```bash
14
+
ln -s docker-compose-solo.yml docker-compose.yml
15
+
```
16
+
17
+
The start the compositon:
18
+
19
+
```bash
20
+
docker compose up
21
+
```
22
+
23
+
Open : http://127.0.0.1:8080/maelstro/
24
+
There is no authentication to access the page but if needed it can be done with basic auth in the [nginx config](./config/nginx-solo.conf) (or another way)
25
+
6
26
### Quick start with geOrchestra
7
27
28
+
First select the `docker-compose-geOrchestra.yml` file as current composition:
Before starting development you need to setup some geOrchestra configurations.
9
35
10
36
See commands documented here: [georchestra/README.md](georchestra/README.md)
11
37
12
38
Now you can run the Docker composition:
13
39
14
40
```bash
15
-
docker compose -f docker-compose-geOrchestra.yml up -d
41
+
docker compose up -d
16
42
```
17
43
18
44
Then application should be available at:
@@ -25,18 +51,20 @@ With credentials:
25
51
- testadmin:testadmin
26
52
- tmaelstro:tmaelstro
27
53
28
-
### Solo quick start
29
-
Maelstro can be used outside geOrchestra.
54
+
### Development
30
55
56
+
For development purpose, you may need to use `docker-compose-dev.yml` instead:
57
+
58
+
```bash
59
+
rm -f docker-compose.yml
60
+
ln -s docker-compose-dev.yml docker-compose.yml
31
61
```
32
-
docker compose up
33
-
```
34
-
Open : http://127.0.0.1:8080/maelstro/
35
-
There is no authentication to access the page but if needed it can be done with basic auth in the [nginx config](./config/nginx-solo.conf) (or another way)
36
62
37
-
### Development
63
+
And maybe add overrides for debugging:
38
64
39
-
If you want to develop, rename the file [docker-compose-dev.yml.override.sample](docker-compose-dev.yml.override.sample) to `docker-compose-dev.yml.override` to apply its configuration and mounts the sources of both apps.
@@ -59,6 +87,7 @@ The configuration is based on a YAML file containing connection information abou
59
87
For dev use of the platform, there is a sample config in the backend folder: [dev_config.yaml](backend/dev_config.yaml). This config is used by default in the docker compo.
60
88
61
89
The file has 4 distict parts:
90
+
62
91
- sources
63
92
- destinations
64
93
- db_logging
@@ -75,6 +104,7 @@ The file has 4 distict parts:
75
104
#### DB logging
76
105
77
106
The section db_logging contains all connection information to reach a writable postgres DB to use for writing and reading operation logs:
107
+
78
108
- host (default: database)
79
109
- port (default: 5432)
80
110
- login (default: georchestra)
@@ -90,13 +120,16 @@ Substitution of credentials (login and password) can be done for the DB configur
90
120
The `transformations` section conatains a list of xsl transformations which can be applied to the xml metadata of source or destination servers.
91
121
92
122
Each named `transformation` item must conatain
123
+
93
124
-`xslt_path`: local path on the server to an xsl file in which the trasformation is defind (typically in the datadir)
94
125
-`description`: Details of the transformation content to easily identify which transformation is applied
95
126
96
127
For each geonetwork item of the source and destination servers, a specific key is added to the configuration file:
128
+
97
129
- transformations: list of xslt keys to be applied to the metadata of the corresponding geonetwork server
98
130
99
131
If a list of transformations is defined for both the source and destination server, the copy operation is executed in the way described below:
132
+
100
133
- read metadata from source
101
134
- apply all source transformations
102
135
- apply all destination transformations
@@ -116,7 +149,6 @@ The logics for credentials is by decreasing order of importance:
116
149
4. Then constant login/password keys are read
117
150
5. If still either "login" or "password" is not defined, the credentials are considered invalid and anonymous acces is used for the instance without authentication
118
151
119
-
120
152
#### Example
121
153
122
154
(see [doc_sample_config.yaml](backend/tests/doc_sample_config.yaml)):
0 commit comments