webdevops/liquibase

The liquibase images are based on java with liquibase and mysql driver

Docker image tags

Tag Distribution name
latest Based on official java with mysql support
mysql Based on official java with mysql support
postgres Based on official java with postgres support

Environment variables

Environment variable Description Default
LIQUIBASE_VERSION Installed Liquibase version not changeable
LIQUIBASE_DRIVER Database driver based on docker tag
LIQUIBASE_CLASSPATH Java class path based on docker tag
LIQUIBASE_URL DB url empty (eg. jdbc:mysql://host/app)
LIQUIBASE_USERNAME DB username empty
LIQUIBASE_PASSWORD DB password empty
LIQUIBASE_CHANGELOG Changelog file /liquibase/changelog.xml
LIQUIBASE_CONTEXTS Server contexts empty
LIQUIBASE_OPTS Additional options empty

Usage

MYSQL: Expecting the changelog.xml is inside the current directory the update process can be started with: docker run --rm -v $(pwd):/liquibase/ -e "LIQUIBASE_URL=jdbc:mysql://host/app" -e "LIQUIBASE_USERNAME=root" -e "LIQUIBASE_PASSWORD=root" webdevops/liquibase:mysql update

POSTGRESL: Expecting the changelog.xml is inside the current directory the update process can be started with: docker run --rm -v $(pwd):/liquibase/ -e "LIQUIBASE_URL=jdbc:postgresql://host:5432/sampledb" -e "LIQUIBASE_USERNAME=root" -e "LIQUIBASE_PASSWORD=root" webdevops/liquibase:postgres update