Sign inSign up

scizorman/sql-migrate-bin

By scizorman

•Updated about 7 years ago

Docker image of the "rubenv/sql-migrate" binary

Image
0

398

scizorman/sql-migrate-bin repository overview

⁠sql-migrate-bin

Docker Cloud Build Status MIT License

Docker image of the sql-migrate⁠ binary. See sql-migrate⁠ if you want to know more details.

⁠How to use

⁠1. Create a directory

Create a directory that contains the following files and directories:

- dbconfig.yml
- migrations
⁠2. Execute

Execute the following command:

$ docker run --rm \
    -w="$WORK_DIR" \
    -v "$MOUNT_DIR":"$WORK_DIR" \
    scizorman/sql-migrate-bin \
    <command> [<args>]

You may want to create a Makefile to easily execute these commands.

⁠NOTE
  • WORK_DIR is your working directory in the docker container
  • MOUNT_DIR is the directory created in 1.

⁠License

This library is distributed under the MIT⁠ license.

Tag summary

Content type

Image

Digest

Size

6.8 MB

Last updated

about 7 years ago

docker pull scizorman/sql-migrate-bin