Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 846 Bytes

File metadata and controls

16 lines (12 loc) · 846 Bytes

This Dockerfile produces a container that can be used to run flyway. This could be useful in situations such as configuring a schema in a CI pipeline.

To run, include any volumes needed to locate the conf and migration files, and run using standard arguments, e.g.

docker run -v $PWD:/fwmnt xtracdev/flyway:4.0.3 -user=esdbo -password=password -locations=filesystem:/fwmnt/migration -configFile=/fwmnt/flyway.conf info

To build the docker image, you need to copy in the Oracle JDBC jar ojdbc7.jar to this directory. You'll need to download the jdbc driver from Oracle. We are unable to distribute the jar file because reasons.

Note: if you get an ORA-01882: timezone region not found error using the above command, specify the TZ environment variable as an environment argument to docker, e.g. docker run -e TZ=GMT -v etc