Docker image for https://github.com/rubenv/sql-migrate/
5.8K
Create a dockerfile containing your migrations folder.
FROM pleymor/sql-migrate-postgres:1.0.0
COPY migrations /project/migrations
Then run it with proper env variables:
docker run \
-e DATABASE_HOSTNAME=localhost \
-e DATABASE_NAME \
-e DATABASE_USERNAME=postgres \
-e DATABASE_PASSWORD=postgres \
-e DATABASE_SSL_MODE=true \
my-sql-migrate
Content type
Image
Digest
sha256:9f743918b…
Size
110.4 MB
Last updated
about 3 years ago
docker pull pleymor/sql-migrate-postgres