Initialize the back end - metadatacenter-attic/cedar-docs GitHub Wiki
Start Infrastructural services
Issue the following command to start all infra services:
startinfra
Create admin user profile in MongoDB
cedarat userProfile-createAll
Start all microservices
startall
Cedar Admin Tool commands
You must run this commands to initialize the back end:
cedarat system-reset confirm
If you are doing a server code upgrade, and you want to get rid of the old data, you could run the same command as above. Please be aware, that this command will erase all the data from all storages (Neo4J, MongoDB), and will reinitialize the system.
The command cedarat userProfile-get-admin can be used to test if the tool is able to read the profile of cedar-admin user from Keycloak. This is necessary to execute the Neo4J related operations.
Get Admin User API KEY, Update bash profile
Run the following command
cedarat userProfile-get-admin
Copy the value from the line: "First active API KEY". Put this value into your .bash_profile replacing the placeholder: <CEDAR_ADMIN_USER_API_KEY>
Source your profile, or log out and in again
Notes on stopping services
In order to stop all the microservices use the command:
killall
To stop the infrastructure services use the command:
stopinfra
Note that the last script invokes the stop* scripts for each infrastructure service, i.e., killkk (Keycloak), stopmongo (MongoDB), stopnginx (Nginx), stopkibana (Kibana), and stopelastic (Elastic Search).