annotate README @ 68:7a91106668b8

Respect custom template and schema in README.
author Tom Gottfried <tom@intevation.de>
date Fri, 25 May 2018 22:17:20 +0200
parents 353f804e86ae
children d9d01dc58f60
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
333c42e341e5 Add README.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
1 Build Dockerfile with e.g.:
333c42e341e5 Add README.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
2 $ docker build -t wamos .
333c42e341e5 Add README.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
3
333c42e341e5 Add README.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
4 Get a running instance with e.g.:
57
353f804e86ae Use volume to have sql in container.
Tom Gottfried <tom@intevation.de>
parents: 36
diff changeset
5 $ docker run --name wamos -d -p 54321:5432 -v $PWD:/opt/wamos wamos
36
333c42e341e5 Add README.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
6
333c42e341e5 Add README.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
7 Create ER diagram with e.g.:
333c42e341e5 Add README.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
8 $ postgresql_autodoc -p 54321 -h $dockerhost \
68
7a91106668b8 Respect custom template and schema in README.
Tom Gottfried <tom@intevation.de>
parents: 57
diff changeset
9 -U wamos --password=wamos -t dot -l . -s 'wamos'
36
333c42e341e5 Add README.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
10 $ dot -Tpng wamos.dot > wamos.png