A database migration management tool written in Golang for docker, optimized for small image size.
328
Images for building and running Migrate CLI in docker on Alpine. Designed for small image size.
| Tag(s) | Description |
|---|---|
latest,complete | Complete build, all databases and sources included. (~30MB) |
pg | Postgres only (~10MB) |
mysql | TODO |
cassandra | TODO |
cockroach | TODO |
spanner | TODO |
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.
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.
Content type
Image
Digest
Size
9.3 MB
Last updated
about 8 years ago
docker pull leoadamek/migrate