Sign inSign up

izissise/diesel-cli

By izissise

Updated over 7 years ago

Minimal docker image with disel cli for migrations

Image
0

1.0K

izissise/diesel-cli repository overview

diesel-cli migration container

docker pulls docker image info docker tag

Needed a dockerised diesel cli to use as a migration container for CI and Kubernetes, so here's a ~12MB one built with muslrust.

Builds weekly on cron against latest stable rust, and latest released version of diesel.

Usage

CI

You can use this on a docker based CI to run migrations, mounting your migration files directly:

docker run --rm \
    -v "$PWD:/volume" \
    -w /volume \
    -e DATABASE_URL="${DATABASE_URL}" \
    -it clux/diesel-cli diesel migration run
Kubernetes

Don't run migrations as part of lifecycle hooks or helm hooks. It's way more complex than inlining a call to the diesel_migrations crate.

Tag summary

Content type

Image

Digest

Size

5.1 MB

Last updated

over 7 years ago

docker pull izissise/diesel-cli