This combines the Official Liquibase Docker images with Liquibase Percona Extension and Percona Toolkit.
- 4.30.0, 4.30, latest (Percona Toolkit 3.6.0)
- 4.29.2, 4.29 (Percona Toolkit 3.6.0)
- 4.28.0, 4.28 (Percona Toolkit 3.5.7)
- 4.27.0, 4.27 (Percona Toolkit 3.5.7)
- 4.26.0, 4.26 (Percona Toolkit 3.5.5)
- 4.25.0, 4.25 (Percona Toolkit 3.5.5)
- 4.24.0, 4.24 (Percona Toolkit 3.5.5)
- 4.23.2, 4.23 (Percona Toolkit 3.5.4)
- 4.23.1 (Percona Toolkit 3.5.4)
- 4.23.0 (Percona Toolkit 3.5.3)
- 4.22.0, 4.22 (Percona Toolkit 3.5.2)
- 4.20.0, 4.20 (Percona Toolkit 3.5.1)
- 4.19.1, 4.19 (Percona Toolkit 3.5.1)
- 4.19.0 (Percona Toolkit 3.5.0)
- 4.18.0, 4.18 (Percona Toolkit 3.5.0)
- 4.17.1, 4.17 (Percona Toolkit 3.4.0)
- 4.17.0 (Percona Toolkit 3.4.0)
- 4.16.0, 4.16 (Percona Toolkit 3.4.0)
- 4.15.0, 4.15 (Percona Toolkit 3.4.0)
- 4.14.0, 4.14 (Percona Toolkit 3.4.0)
- 4.13.0, 4.13 (Percona Toolkit 3.4.0)
- 4.12.0, 4.12 (Percona Toolkit 3.3.1)
- 4.11.0, 4.11 (Percona Toolkit 3.3.1)
- 4.10.0, 4.10 (Percona Toolkit 3.3.1)
- 4.9.1, 4.9 (Percona Toolkit 3.3.1)
- 4.9.0 (Percona Toolkit 3.3.1)
- 4.8.0, 4.8 (Percona Toolkit 3.3.1)
- 4.7.1, 4.7 (Percona Toolkit 3.3.1)
- 4.6.2, 4.6 (Percona Toolkit 3.3.1)
- 4.6.1.1 (Percona Toolkit 3.3.1)
- 4.6.1 (Percona Toolkit 3.3.1)
- 4.5.0, 4.5 (Percona Toolkit 3.3.1)
- 4.4.3, 4.4 (Percona Toolkit 3.3.1)
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.:
docker run --rm andreasdangel/liquibase-percona /usr/local/bin/pt-online-schema-change \
--alter-foreign-keys-method=auto --nocheck-unique-key-change \
--alter="ADD COLUMN name VARCHAR(50) NOT NULL" \
--password=<PASSWORD> \
--dry-run --print \
h=<IP OR HOSTNAME>,P=3306,u=<USERNAME>,D=<DATABASE>,t=<TABLE NAME>