Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.43 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.43 KB

Flyway-migrations

This repository includes an example of how to build a custom Flyway image to perform database migrations using containers.

Note

  • Make sure to update the flyway.conf file with your host, port, user and password information
  • Make sure to update the path where the configuration file will be stored

Intructions

Build custom Flyway image

docker build . -t flyway-migrations

Set $ConfigFile and $SQLScripts

ConfigFile=./ConfigFile;

Perform migrations

# Check migrations info
docker container run --rm \
    --volume $ConfigFile:/flyway/conf \
    --network host \
    flyway-migrations info
    
# Perform migrations
docker container run --rm \
    --volume $ConfigFile:/flyway/conf \
    --network host \
    flyway-migrations migrate

Questions?

If you have questions or comments about this demo, don't hesitate to contact me at crobles@dbamastery.com

Follow me

N|Solid N|Solid N|Solid N|Solid