add: tools, secrets (safe files), updated gitignore
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# MariaDB check container
|
||||
|
||||
Small HTTP service that performs `SELECT 1` against MariaDB and returns JSON.
|
||||
|
||||
## Environment variables
|
||||
|
||||
- `DB_HOST`
|
||||
- `DB_PORT` (default: 3306)
|
||||
- `DB_USER`
|
||||
- `DB_PASSWORD`
|
||||
- `DB_NAME` (default: postgres)
|
||||
- `PORT` (default: 8080)
|
||||
|
||||
## Build and push (run locally)
|
||||
|
||||
```bash
|
||||
# Example: set your registry path
|
||||
REGISTRY_PATH=pearlharbor.registryk8s.services.ngcloud.ru/demo/mariadb-check:0.1
|
||||
|
||||
cd tools/mariadb_check_container
|
||||
|
||||
docker build -t "$REGISTRY_PATH" .
|
||||
docker push "$REGISTRY_PATH"
|
||||
```
|
||||
Reference in New Issue
Block a user