... | ... | @@ -31,4 +31,21 @@ Get the Docker image of Orion-LD through the following command: |
|
|
|
|
|
Then, modify the docker-compose.yml file. In the section dedicated to the context broker (`Orion` service), change the value of `image` from `fiware/orion` to `fiware/orion-ld`. This change is reflected in this docker-compose.yml file: [https://gitlab.distantaccess.com/naiades/naiades-platform-poc/-/blob/migrate_to_ld_queries/docker-compose.yml](https://gitlab.distantaccess.com/naiades/naiades-platform-poc/-/blob/migrate_to_ld_queries/docker-compose.yml)
|
|
|
|
|
|
There is no change to do for the mongo-db Docker image, unless to erase the old data. Firstly, do a backup of the MongoDB database as explained here: [How to back up your mongo-db data? (Orion)](https://gitlab.distantaccess.com/naiades/naiades-platform-poc/-/wikis/IoT-Platform-operations#how-to-back-up-your-mongo-db-data-orion). Afterwards, you can delete the content of the MongoDB database. |
|
|
\ No newline at end of file |
|
|
There is no change to do for the mongo-db Docker image, unless to erase the old data. Firstly, do a backup of the MongoDB database as explained here: [How to back up your mongo-db data? (Orion)](https://gitlab.distantaccess.com/naiades/naiades-platform-poc/-/wikis/IoT-Platform-operations#how-to-back-up-your-mongo-db-data-orion). Afterwards, you can delete the content of the MongoDB database as follows:
|
|
|
1. Go to the `db-mongo` Docker container console with command: `docker exec -it db-mongo bash`
|
|
|
2. Connect to the MongoDB database with the command `mongo`.
|
|
|
3. Erase the content of all the databases beginning with `orion`. So, select the database `orion` with the command `use orion`.
|
|
|
4. Then, enter the command `db.dropDatabase()`.
|
|
|
5. Select the database `orion-alicante` with the command `use orion-alicante`.
|
|
|
6. Drop this database with the command `db.dropDatabase()`.
|
|
|
7. Select the database `orion-braila` with the command `use orion-braila`.
|
|
|
8. Drop this database with the command `db.dropDatabase()`.
|
|
|
9. Select the database `orion-carouge` with the command `use orion-carouge`.
|
|
|
10. Drop this database with the command `db.dropDatabase()`.
|
|
|
11. Select the database `orion-test` with the command `use orion-test`.
|
|
|
12. Drop this database with the command `db.dropDatabase()`.
|
|
|
13. Select the database `orion-wtp_lab` with the command `use orion-wtp_lab`.
|
|
|
14. Drop this database with the command `db.dropDatabase()`.
|
|
|
15. Exit from MongoDB: `quit()`.
|
|
|
16. Leave the `db-mongo` Docker container: `exit`.
|
|
|
|