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: docker/README.md
-177Lines changed: 0 additions & 177 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,181 +284,4 @@ docker compose --profile=int-registry-batch-loader down
284
284
Note: Ignore any `failed to remove network` errors, because the related docker network may
285
285
have active endpoints of other services.
286
286
287
-
## 🏃 Steps to configure the Scalable Harvest components to be executed with docker compose
288
287
289
-
#### 1. Open the `.env` file (located in the same directory with the `docker.compose.yml` file).
290
-
291
-
#### 2. Check and update (if necessary) the following common environment variable.
292
-
293
-
| Environment Variable | Description |
294
-
| ----------------------------- | ----------- |
295
-
| HARVEST_DATA_DIR | Absolute path of the Harvest data directory in the host machine (E.g.: `/tmp/registry-harvest-data`). If the Registry Harvest CLI is executed with the option to download test data, then this directory will be cleaned-up and populated with test data |
#### 2. Update the Registry Harvest Service configuration file.
312
-
313
-
* Get a copy of the `harvest-server.cfg` file from https://github.com/NASA-PDS/registry-harvest-service/blob/main/src/main/resources/conf/harvest-server.cfg and keep it in a local file location such as `/tmp/cfg/harvest-server.cfg`.
314
-
* Update the properties such as `rmq.host`, `rmq.user`, `rmq.password` and `es.url` to match with your deployment environment.
315
-
* Make sure to specify the exact IP address of the host machine (E.g.: `192.168.0.1`), when configuring the `rmq.host` and
316
-
`es.url`.
317
-
318
-
#### 3. Check and update (if necessary) the following environment variables related with the Registry Harvest Service in the `.env` file.
319
-
320
-
321
-
| Environment Variable | Description |
322
-
| ----------------------------- | ----------- |
323
-
| BIG_DATA_HARVEST_SERVER_IMAGE | Docker image of the Registry Harvest Service. Make sure this docker image is available. |
324
-
| HARVEST_SERVER_CONFIG_FILE | Absolute path of the Registry Harvest Service configuration file in the host machine (E.g.: `./default-config/harvest-server.cfg`) |
#### 4. Update the Registry Crawler Service configuration file.
339
-
340
-
* Get a copy of the `harvest-client.cfg` file from https://github.com/NASA-PDS/big-data-crawler-server/blob/main/src/main/resources/conf/crawler-server.cfg and
341
-
keep it in a local file location such as `/tmp/cfg/crawler-server.cfg`.
342
-
* Update the properties such as `rmq.host`, `rmq.user` and `rmq.password` to match with your deployment environment.
343
-
* Make sure to specify the exact IP address of the host machine (E.g.: `192.168.0.1`), when configuring the `rmq.host`.
344
-
345
-
#### 5. Check and update (if necessary) the following environment variables related with the Registry Crawler Service in the `.env` file.
346
-
347
-
348
-
| Environment Variable | Description |
349
-
| ------------------------------ | ----------- |
350
-
| REGISTRY_CRAWLER_SERVICE_IMAGE | Docker image of the Registry Crawler Service. Make sure this docker image is available. |
351
-
| CRAWLER_SERVER_CONFIG_FILE | Absolute path of the Registry Crawler Service configuration file in the host machine (`E.g.: ./default-config/crawler-server.cfg`) |
#### 6. Update the Registry Harvest CLI configuration file.
366
-
367
-
* Get a copy of the `harvest-client.cfg` file from https://github.com/NASA-PDS/registry-harvest-cli/blob/main/src/main/resources/conf/harvest-client.cfg and
368
-
keep it in a local file location such as `./default-config/harvest-client.cfg`.
369
-
* Update the properties such as `rmq.host`, `rmq.user` and `rmq.password` to match with your deployment environment.
370
-
* Make sure to specify the exact IP address of the host machine (E.g.: `192.168.0.1`), when configuring the `rmq.host`.
371
-
372
-
373
-
#### 7. Update the Harvest job file.
374
-
375
-
* Create a Harvest job file in a local file location (E.g.: `./default-config/cfg/harvest-job-config.xml`).
376
-
* An example for a Harvest job file can be found at https://github.com/NASA-PDS/registry-harvest-cli/blob/main/src/main/resources/examples/directories.xml.
377
-
Make sure to update the `/path/to/archive` in the Harvest job file to point to a valid Harvest data directory.
378
-
379
-
#### 8. Check and update (if necessary) the following environment variables related with the Registry Harvest CLI in the `.env` file.
380
-
381
-
| Environment Variable | Description |
382
-
| ----------------------------- | ----------- |
383
-
| REGISTRY_HARVEST_CLI_IMAGE | Docker image of the Registry Harvest CLI. Make sure this docker image is available. |
384
-
| HARVEST_CLIENT_CONFIG_FILE | Absolute path of the Registry Harvest CLI configuration file in the host machine (E.g.: `./default-config/harvest-client.cfg`) |
385
-
| HARVEST_JOB_CONFIG_FILE | Absolute path of the Harvest job file in the host machine (E.g.: `./default-config/harvest-job-config.xml`) |
The RabbitMQ can be configured by using the `rabbitmq-definitions.json` file available at the `registry/docker/config` directory.
409
-
410
-
* Open the `rabbitmq-definitions.json` file.
411
-
* Locate the definition for the user `harvest` under the `users`.
412
-
* The password of the user `harvest` should be specified as a RabbitMQ `password_hash`. Generate a password hash using
413
-
the `rabbit_password_hashing_sha256` algorithm (The Python script available at the https://stackoverflow.com/questions/41306350/how-to-generate-password-hash-for-rabbitmq-management-http-api/53016240#53016240
414
-
can be used to generate a password hash for a new password hash).
415
-
* Update the `password_hash` of the `harvest` user with the newly generated password hash.
416
-
417
-
#### 10. Check and update (if necessary) the following environment variables related with the Postman Collection Test
418
-
419
-
| Environment Variable | Description |
420
-
| ----------------------------- | ----------- |
421
-
| POSTMAN_NEWMAN_IMAGE | Docker image of Newman (a command-line collection runner for Postman) |
422
-
| POSTMAN_COLLECTION_FILE | Absolute path of the Postman collection to be executed with the test data (E.g.: ./postman/postman_collection.json) |
## 🏃 Steps to execute the Scalable Harvest components with docker compose
437
-
438
-
#### 1. Open a terminal and change the current working directory to `registry/docker`.
439
-
440
-
#### 2. Setup Elasticsearch and RabbitMQ as explained in the following document.
441
-
TODO: Add the link to the Scalable Harvest documentation.
442
-
443
-
#### 3. Start Scalable Harvest components as follows.
444
-
445
-
To execute Scalable Harvest Integration Tests with downloaded test data
446
-
```
447
-
docker compose --profile=int-registry-service-loader up
448
-
```
449
-
450
-
#### 4. Test the deployment.
451
-
452
-
Follow the instructions in the following section at the end of the [Test Your Deployment](https://nasa-pds.github.io/pds-registry-app/install/test.html).
453
-
454
-
* Query Elasticsearch
455
-
456
-
## 🏃 Cleaning up the Scalable Harvest deployment
457
-
458
-
#### * The Scalable Harvest deployment can be cleaned up as follows.
459
-
```
460
-
docker compose --profile=int-registry-service-loader down
461
-
```
462
-
463
-
Note: Ignore any `failed to remove network` errors, because the related docker network may
0 commit comments