Dockerized flyway command line tool.
Run:
docker run --rm -v /path/to/your/migrations:/sql -e FLYWAY_CMD=migrate -e DB_USER=postgres -e DB_PASSWORD=postgres -e DB_URL=jdbc:postgresql://db_host/db_name iterators/flyway-docker -e DB_CONNECTION_CHECK=true
Remember to provide correct /path/to/your/migrations
and env variables: FLYWAY_CMD
, DB_USER
, DB_PASSWORD
, DB_URL
.
If you want to check connection to your database before executing FLYWAY_CMD
set DB_CONNECTION_CHECK
env variable to any value (like DB_CONNECTION_CHECK=true
).
If you have any questions regarding this project contact:
Łukasz Sowa [email protected] from Iterators.
For licensing info see LICENSE file in project's root directory.