Sign inSign up

leoadamek/migrate

By leoadamek

•Updated about 8 years ago

A database migration management tool written in Golang for docker, optimized for small image size.

Image
0

328

leoadamek/migrate repository overview

⁠Migrate CLI Docker

Images for building and running Migrate CLI⁠ in docker on Alpine. Designed for small image size.

⁠Tags

Tag(s)Description
latest,completeComplete build, all databases and sources included. (~30MB)
pgPostgres only (~10MB)
mysqlTODO
cassandraTODO
cockroachTODO
spannerTODO

⁠Usage

Example:

docker run -it --rm -v $PWD/migrations:/migrations:ro leoadamek/migrate migrate -database mysql://my-mysql/db -path /migrations up

The default CMD is to run the migrate CLI so all arguments passed to the image will be passed to migrate.

⁠Dockerfiles

Builds are split into two stages, a build stage which creates an image which will build the migrate executable, and then a second stage which adds the migrate executable from the docker build directory.

This allows for much smaller images, 30MB for the complete package, vs 900MB for the builder image.

Tag summary

Content type

Image

Digest

Size

9.3 MB

Last updated

about 8 years ago

docker pull leoadamek/migrate