https://github.com/theiterators/flyway-docker
Dockerized flyway command line tool
https://github.com/theiterators/flyway-docker
Last synced: 5 months ago
JSON representation
Dockerized flyway command line tool
- Host: GitHub
- URL: https://github.com/theiterators/flyway-docker
- Owner: theiterators
- License: apache-2.0
- Created: 2016-04-12T13:39:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-28T10:02:26.000Z (over 1 year ago)
- Last Synced: 2024-11-28T11:19:33.108Z (over 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 8
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flyway-docker
Dockerized [flyway](https://flywaydb.org) command line tool.
## Usage
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`).
## Author & license
If you have any questions regarding this project contact:
Łukasz Sowa from [Iterators](https://iterato.rs).
For licensing info see LICENSE file in project's root directory.