Sign inSign up

webspellchecker/db-manager

By webspellchecker

•Updated 15 days ago

Provisions and migrates the MySQL database used by WProofreader server and App-manager

Image
Integration & delivery
0

458

webspellchecker/db-manager repository overview

⁠WebSpellChecker / db-manager

Docker image with db-manager, the tool that creates and migrates the cloud_service MySQL database used by WProofreader Server and App-manager. It wraps Liquibase Community Edition in a small CLI and is meant to run once, before the application containers start: as a one-shot Compose service, a Kubernetes Job or an init container. Re-running it is safe, changesets that are already applied are skipped.

⁠Tags

Images are tagged with the WProofreader Server version they belong to, for example 6.17.1.0. latest points to the newest release. Use the same version as your webspellchecker/wproofreader image, since each release carries the schema changes for that version. Images are built for linux/amd64 and linux/arm64.

⁠Get started

The simplest setup is the Docker Compose stack in the WProofreader Docker repository⁠: MySQL, db-manager, WProofreader Server and App-manager on one host. On Kubernetes, the WProofreader⁠ and App-manager⁠ Helm charts run db-manager for you.

To run it on its own against an existing MySQL server:

docker run --rm --network <mysql_network> \
  -e DB_HOST=mysql \
  -e DB_USER=root \
  -e DB_PASSWORD=<root password> \
  -e PROVISION_PREDEFINED_USERS=true \
  -e APPSERVER_PASSWORD=<password for the appserver user> \
  -e APP_MANAGER_PASSWORD=<password for the app_manager user> \
  webspellchecker/db-manager:6.17.1.0 migrate

This creates the cloud_service database, applies the schema and seed data, and creates the two application users with the grants they need. status shows applied and pending changesets; db-manager --help lists the other commands (rollback, backup, health-check, users).

⁠Configuration

VariableDefaultDescription
DB_HOSTlocalhostMySQL host
DB_PORT3306MySQL port
DB_NAMEcloud_serviceDatabase to create and migrate
DB_USERrootAccount that can create the database and users
DB_PASSWORDPassword for DB_USER
DB_CONTEXTSexternal,seedMigration contexts to apply
MIGRATION_MODEbootstrapbootstrap, adopt or `schema-only
CREATE_BACKUPfalseDump the database before migrating (mount /backups to keep it)
AUTO_ROLLBACK_ON_FAILUREfalseRestore that dump if the migration fails
PROVISION_PREDEFINED_USERSfalseCreate or update the `appserrs
APPSERVER_USERNAME, APPSERVER_PASSWORDappserver, noneCredentials for WProofreader Server
APP_MANAGER_USERNAME, APP_MANAGER_PASSWORDapp_manager, noneCredentials for App-manager
DB_MAX_RETRIES, DB_RETRY_INTERVAL30, 2How long to wait
LOG_LEVELINFOERROR, WARN, INFO, DEBUG or TRACE

⁠Resources

⁠Technical support or questions

Holders of a trial or commercial license have access to technical assistance from the WebSpellChecker team. Contact us here⁠.

⁠License

db-manager is part of WProofreader Server, commercial software developed by WebSpellChecker (https://webspellchecker.com/⁠).

Tag summary

Content type

Image

Digest

sha256:5987f0b41…

Size

97.3 MB

Last updated

15 days ago

docker pull webspellchecker/db-manager