8000 GitHub - emperorhan/postgres-setup
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

emperorhan/postgres-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-Run

# build dockerfile
$ docker build -f postgres/Dockerfile -t postgres-custom .

or

# build dockerfile
$ docker build -f postgres/Dockerfile-hasura-pg -t postgres-custom .

Run

# exec run.sh
$ ./script/run.sh --help

init.sql

fill-pg sets up a bare database without indexes and query functions. After fill-pg is caught up to the chain, stop it then run init.sql in this repository's source directory. e.g. docker exec -it postgres psql --username=postgres -f /var/lib/postgresql/data/pgdata/init.sql.

stop fill-pg

# stop fill-pg
$ docker stop fill-pg

run init.sql

# run init.sql
$ docker exec -it postgres psql --username=postgres -f /var/lib/postgresql/data/pgdata/init.sql

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0