summaryrefslogtreecommitdiff
path: root/backup/Dockerfile
Commit message (Collapse)AuthorAgeFilesLines
* Fixes permission problem when restoring backupHirotaka Wakabayashi2023-01-271-1/+1
| | | | | | | | | | | | | This PR changes the owner of the file used by the docker container that resets the mysql root password. Original problem is the failure to restore mysql:5.7.x backup. The error occurs because the container process tries to update the file that owned by the others. Story: 2010467 Task: 47017 Change-Id: I3d8ebaac4ee5e13af83c305ce28b51e4442d8c8b
* Use bridge network for db containerLingxian Kong2021-06-221-1/+1
| | | | | | | | | - Changed the network mode of database container to "bridge" and exposed the service ports. - Use socket file to connect with the database. - Upgrade the backup container image for postgressql. Change-Id: Id5b119f8a474befc3a2cd6e061bbffc4ae5f7bb6
* Support mysql 8.0Lingxian Kong2020-10-231-3/+2
| | | | | | | | | | | | | | | | | | | | * MySQL 5.7 and MySQL 8.0 need different percona-xtrabackup package version. Added Percona XtraBackup 8 support for MySQL 8.x backup and restore. * Construct different backup container image names for MySQL 5.7 and MySQL 8.0 based on the default option value. * Two docker images are uploaded for backup/restore: openstacktrove/db-backup-mysql5.7:1.0.0 and openstacktrove/db-backup-mysql8.0:1.0.0. Trove guest agent can automatically choose the approriate one based on the datastore version. * Added option "secure-file-priv=NULL" in MySQL config template to fix https://github.com/docker-library/mysql/issues/541. * Stop using IDENTIFIED BY in GRANT clause (also REVOKE). Starting with MySQL 8 creating a user implicitly using the GRANT command is not supported. Story: #2008275 Task: #41143 Change-Id: Ibdec63324b1b39ba9b8a38dbe529da17bbb06767
* [Postgresql] Create replicaLingxian Kong2020-09-111-0/+2
| | | | Change-Id: Ia00032074dc44a6fbfc1e2d5ab16d1734a1a732c
* Postgresql: Backup and restoreLingxian Kong2020-09-071-2/+3
| | | | Change-Id: Icf08b7dc82ce501d82b45cf5412256a43716b6ae
* Improve docker image for database backup/restoreLingxian Kong2020-09-021-24/+9
| | | | | | | | * Decrease the image size by not installing unnecessary packages. * Move the option 'backup_docker_image' to separate database config section. Change-Id: I3362e1f8a7dc21b89c060352f2db2f138c16db07
* Datastore containerizationLingxian Kong2020-05-271-0/+41
Significant changes: * Using docker image to install datastore. * Datastore image is common to different datastores. * Using backup docker image to do backup and restore. * Support MariaDB replication * Set most of the functional jobs as non-voting as nested virtualization is not supported in CI. Change-Id: Ia9c97a63a961eebc336b70d28dc77638144c1834