Sign inSign up

visheyra/sql-migrate-docker

By visheyra

•Updated over 8 years ago

port of sql migrate

Image
0

989

visheyra/sql-migrate-docker repository overview

⁠sql-migrate-docker

Container that wraps https://github.com/rubenv/sql-migrate⁠ for use in CD Pipeline / Kubernetes job / ...

⁠How to

This section explains how to use the container, where to mount the volumes, which environemtn variable should be set

⁠Volumes
MountpointDescription
/tmpFolder where to mount your different sql files, check rubenv github⁠ for how to write those files.
⁠Environment
VariableMandatoryDescription
CONFIGNoPath to sql-migrate config file, can be omitted. If omitted, it's assumed that the configuration file is called dbconfig.yml and is stored along the other sql files in the /files folder
⁠Additional features
  • Commands
    • reset: Un-apply the entire files on the DB.

⁠What's next

  • Additional reset command
  • Kubernetes job example
  • Jenkins declarative pipeline example

Tag summary

Content type

Image

Digest

Size

325.2 MB

Last updated

over 8 years ago

docker pull visheyra/sql-migrate-docker