Docker images containing the Diesel CLI for Postgres.
You can run a print-schema container like below, that will run all migrations against a fresh Postgres database and then print schema.rs
to stdout.
e.g. assuming your Diesel migrations are under migrations/
in your current working directory, you can run something like:
docker run \
--rm \
-v $(pwd)/migrations:/migrations \
jameshiew/diesel-cli:2.0.1-print-schema > schema.rs