Liquibase with Percona Extension and Percona Toolkit
10K+
This combines the Official Liquibase Docker images with Liquibase Percona Extension and Percona Toolkit.
Execute a database update by simply running liquibase. The liquibase-percona extension and pt-online-schema-change will automatically be picked up:
docker run --rm -v <PATH TO CHANGELOG DIR>:/liquibase/changelog \
andreasdangel/liquibase-percona \
--url="jdbc:mysql://<IP OR HOSTNAME>:3306/<DATABASE>" \
--changeLogFile=com/example/changelog.xml \
--username=<USERNAME> --password=<PASSWORD> \
--logLevel=info \
update
If you want to set a system property,
e.g. liquibase.percona.defaultOn=false, you need to use "-e JAVA_OPTS".
docker run --rm -v <PATH TO CHANGELOG DIR>:/liquibase/changelog \
-e JAVA_OPTS=-Dliquibase.percona.defaultOn=false \
andreasdangel/liquibase-percona \
--url="jdbc:mysql://<IP OR HOSTNAME>:3306/<DATABASE>" \
--changeLogFile=com/example/changelog.xml \
--username=<USERNAME> --password=<PASSWORD> \
--logLevel=info \
update
You can also run pt-online-schema-change directly, e.g.:
Content type
Image
Digest
sha256:832edcd1c…
Size
172.9 MB
Last updated
3 months ago
docker pull andreasdangel/liquibase-percona