Skip to content

Commit

Permalink
formatting consistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dan9186 committed Jun 23, 2020
1 parent 9328d8a commit ddfbb31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The purposed of this docker image is to create a super tiny image for running mi

It is built on top of Alpine with the latest stable release of goose and bash installed.

## Usage
# Usage

It is recommended to build your own migration images from this one with an entrypoint to execute everything. This is to ensure the same migrations can be run in your environments.

Expand All @@ -21,7 +21,7 @@ project
|_ ...
```

###Dockerfile
### Dockerfile

```
FROM gomicro/goose
Expand All @@ -32,7 +32,7 @@ ADD entrypoint.sh /migrations/
ENTRYPOINT ["/migrations/entrypoint.sh"]
```

###Entrypoint
### Entrypoint

```
#!/bin/bash
Expand All @@ -42,7 +42,7 @@ DBSTRING="host=$DBHOST user=$DBUSER password=$DBPASSWORD dbname=$DBNAME sslmode=
goose postgres "$DBSTRING" up
```

###Migrations
### Migrations

See goose's documentation for [SQL Migrations](https://github.com/pressly/goose#sql-migrations) on how to structure the migration files.

Expand Down

0 comments on commit ddfbb31

Please sign in to comment.