This repository reproduces an error with the Docker images schemaspy/schemaspy:snapshot and schemaspy/schemaspy:latest.
The file schema.sql is a dump of the database schema used for this test.
- Docker
- Docker Compose
- Node.js
- Yarn
- PostgreSQL
With schemaspy/schemaspy:snapshot:
bin/schemaspyWith schemaspy/schemaspy:latest:
SCHEMASPY_VERSION=latest bin/schemaspySCHEMASPY_VERSION="6.1.0" bin/schemaspyIf you would like to create the databases for this test outside of Docker then:
- Install Node.js 18.15 (e.g.,
asdf install) - Install yarn 3.5.0 (e.g.,
corepack enable && corepack prepare yarn@stable --activate) - Run
yarn install - Create a new database named
foo - Generate a
.envfile withyarn generate-env - Reset the database with
yarn reset
The database is now prepared and ready for use with SchemaSpy.