Skip to content

Instantly share code, notes, and snippets.

@evandertino
Forked from nihonzaru/SchemaSpy-v6.md
Created March 9, 2019 18:57
Show Gist options
  • Save evandertino/b92bf4625a1df4e6f23c02ccf4e5e37c to your computer and use it in GitHub Desktop.
Save evandertino/b92bf4625a1df4e6f23c02ccf4e5e37c to your computer and use it in GitHub Desktop.
SchemaSpy for Oracle

Usage

Refs

Download JDBC

http://www.oracle.com/technetwork/database/features/jdbc/index.html

Build Docker image

$ docker build -t my/schemaspy .

Create schemaspy.properties

http://schemaspy.readthedocs.io/en/latest/started.html#configuration

Run Docker container (Generate Database info)

$ docker run --rm \
    -v /path-to/schemaspy.properties:/tmp/schemaspy/schemaspy.properties -v \
    -v /path-to/output:/tmp/schemaspy/output -v \
    -d my/schemaspy -hq # another options...
FROM java:openjdk-8u111-jre-alpine
ENV LC_ALL C
RUN apk update
RUN apk add graphviz
RUN apk add fontconfig
RUN apk add unzip
WORKDIR /tmp/schemaspy
# TODO: Rename to real path
ADD ./ojdbcXX.jar .
ADD https://github.com/schemaspy/schemaspy/releases/download/v6.0.0-rc1/schemaspy-6.0.0-rc1.jar .
ADD https://www.fontsquirrel.com/fonts/download/open-sans ./open-sans.zip
RUN unzip open-sans.zip -d /usr/share/fonts
RUN fc-cache -fv
ENTRYPOINT ["java", "-jar", "schemaspy-6.0.0-rc1.jar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment