https://github.com/zephinzer/db-ensurer
Utility job for communicating with the `db-maker` service to ensure the required database is created.
https://github.com/zephinzer/db-ensurer
Last synced: 2 months ago
JSON representation
Utility job for communicating with the `db-maker` service to ensure the required database is created.
- Host: GitHub
- URL: https://github.com/zephinzer/db-ensurer
- Owner: zephinzer
- License: mit
- Created: 2018-09-24T08:18:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-24T08:29:39.000Z (over 6 years ago)
- Last Synced: 2025-02-01T19:14:07.048Z (4 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DB Ensurer
[](https://travis-ci.org/zephinzer/db-ensurer)
Job for running to create a new database with [the `db-maker` service](https://github.com/zephinzer/db-maker). Run this job to create the required database and database user.
## Usage
See the [docker-compose.yml](./docker-compose.yml) for a simple setup.
## Job Configuration
| Environment Variable | Type | Description |
| --- | --- | --- |
| `DB_MAKER_URL` | String | Specifies the base URL of the `db-maker` service. Eg. `http://db-maker:8080` |
| `DB_HOST` | String | Specifies the hostname of the database. Eg. `mysql` (port defaults to 3306) |
| `DB_NAME` | String | Specifies the name of the new schema you wish to create. Eg. `my_schema` |
| `DB_USER` | String | Specifies the user which will be granted access to the new schema. Eg. `schema_user` |
| `DB_PASSWORD` | String | Specifies the password of the user specified in `DB_USER` |
| `DB_ROOT_PASSWORD` | String | Specifies the root password so that the user can be created |
| `MAX_RETRY` | String | Specifies the maximum number of retries of the job before it exits with 1 |
| `INTERVAL_RETRY` | String | Specifies the duration in milliseconds between connection retries |## License
This project is licensed under [the MIT license](./LICENSE).# Cheers