Diesel.rs command line tool Docker image. It is based on Alpine to keep it as small as possible (~ 17 MB)
Just use it as you would use diesel-cli:
docker run -it dgolubets/diesel-cli migration list
Create a Dockerfile:
FROM dgolubets/diesel-cli:latest
COPY ./migrations ./migrations
CMD ["database", "setup"]
Build your migrations image:
docker build . -t migrations
Run migrations:
docker run -e DATABASE_URL=postgres://username:password@pghost/diesel_demo migrations:latest