Skip to content

Docker 🐳 images containing sql-migrate πŸ—„οΈ

Notifications You must be signed in to change notification settings

thisiserico/db-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

db-migration

Build Status

thisiserico/db-migration wraps sql-migrate within docker to easily run your containerized migrations.

Containerize your migrations

You'll need a directory with two elements:

  • A sql folder with all the sql migration files (check out the examples!)
sql
β”œβ”€β”€ 00_setup.sql
└── 01_tables_creation.sql
  • A Dockerfile with just a couple lines
FROM thisiserico/db-migration:postgres-9.6.4
COPY . .

After that, build the image and run a container:

docker build -t my-migrations .
docker run my-migrations up

About

Docker 🐳 images containing sql-migrate πŸ—„οΈ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published