ERD Generator¶
Generate Entity Relationship Diagrams using the erd tool
| Repository | https://gitlab.com/ringingmountain/docker/erd-generator |
| CI Pipeline | https://gitlab.com/ringingmountain/docker/erd-generator/pipelines |
| Documentation | https://erd-generator.readthedocs.io/ |
Usage¶
docker run \
--user "$(id -u):$(id -g)" \
-v "${PWD}/schemata":/schemata \
-v "${PWD}/build":/build \
ringingmountain/erd-generator:latest \
-i /docs/file.er \
-o /build/file.svg
Quickstart Development Guide¶
Build Documentation¶
ci/docs.sh
Build Docker Image¶
./ci/build.sh [TAG]
Run Gitlab CI Jobs Locally¶
You will first need to install the Gitlab runner package and register a runner on your local machine.
gitlab-runner exec docker <job_name> --docker-services docker:dind --docker-privileged
Releasing a New Version¶
- Checkout master.
- Decide whether you are releasing a major, minor, or patch revision. For assistance in making this choice see the SemVer standard.
- Ensure an entry for the version exists in
CHANGELOG.rstsummarizing the changes you are releasing. - Update the version in docs/conf.py
- Commit the changes, commenting that you are bumping the version.
- Tag the repo with the matching version.
- Push to the central remote and your fork.