-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JeMPI Bootstrapper app #140
JeMPI Bootstrapper app #140
Conversation
@walisc can you please update the script to setup JeMPI the first time? |
Hi @ajinkyagadewar . Yes, that is the plan post this week. The command will be runner i.e
|
Ticket: JMPI-729
Other Related Tickets: N/A
Description of changes
This change adds a new app JeMPI_Bootstrapper. The app fall under the devops part of JeMPI, and is currently used to manage data used by JeMPI. More specifically, it is used to manage JeMPI postgres, draph, and kafka data. It manages this data through a CLI interface of which the options are listed below:
./bootstrapper.sh data -h
./bootstrapper.sh data kafka -h
./bootstrapper.sh data postgres -h
./bootstrapper.sh data dgraph -h
In addition to this, this pull request also
This application can be run directly (as a java app), or via the script found at devops/linux/bootstrapper.sh (i.e
devops/linux/bootstrapper.sh -h
)The app uses the JeMPI environment variable to know what to connect to for the various instances. You can however pass in a config file that contains the variables you want to use instead. These variables in the config file will then be merged with the available environment variables.
./bootstrapper data resetAll config="<path-to-config>"
)Future considerations
Most of the other devops scripts can be bundle into the bootstrapper app allowing for easier usablity.
How to test
./bootstrapper.sh data deleteAllSchemaData
./bootstrapper.sh data createAllSchemaData
./bootstrapper.sh data resetAll
. All tables, schemas and topics should be recreated appropiately. The data that was there should no longer be there.