Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

skydjol/docker_liquibase_mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Liquibase 2.0.5

Docker Repository on Quay.io

Default Configuration

Runs liquibase 2.0.5 with mysql connector

Usage

linking to a mysql container

If you are linking to a mysql container, entrypoint.sh will pick up on the correct configuration via environment variables provided by the mysql container. The only additional things needed are

  • to mount the migrations
  • to specify the database against which the migrations will be run
docker run -it \
  --link db:mysql \
  --rm \
  -v /local/path/migrations:/changelogs \
  -e TARGET_DATABASE=foo \
  freshbooks/liquibase-mysql:2.0.5

Specifying configuration via environment variables

entrypoint.sh allows setting of the following to configure the liquibase run:

  • MYSQL_HOST
  • MYSQL_PORT
  • MYSQL_USER
  • MYSQL_PASSWORD
  • TARGET_DATABASE

Specifying your own commandline options

You may also invoke liquibase with whatever options or command you like. --driver=com.mysql.jbc.Driver is already specified.

docker run -it \
  --rm \
  -v /local/path/migrations:/changelogs \
  freshbooks/liquibase_mysql:2.0.5 \
   --changeLogFile=/changelogs/migrations.xml \
   --username=foo
   --password=bar
   --url="jbc:mysql://baz:3306/my_table
   update

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages