Skip to content

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

Notifications You must be signed in to change notification settings

geo-kids/Flyway-migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published