-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 894 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# https://github.com/schemacrawler/SchemaCrawler/releases
FROM java:8
MAINTAINER Ryan Chatterton <ryan.chatterton@sharpnotions.com>
ARG SCHEMACRAWLER_VERSION
# Install GraphViz
RUN \
apt-get update \
&& apt-get install -y graphviz \
&& rm -rf /var/lib/apt/lists/*
# Download SchemaCrawler and prepare install directories
RUN \
wget -nv https://github.com/schemacrawler/SchemaCrawler/releases/download/v"$SCHEMACRAWLER_VERSION"/schemacrawler-"$SCHEMACRAWLER_VERSION"-distribution.zip \
&& unzip -q schemacrawler-"$SCHEMACRAWLER_VERSION"-distribution.zip \
&& mv schemacrawler-"$SCHEMACRAWLER_VERSION"-distribution/_schemacrawler schemacrawler \
&& rm schemacrawler-"$SCHEMACRAWLER_VERSION"-distribution.zip \
&& rm -rf schemacrawler-"$SCHEMACRAWLER_VERSION"-distribution
# Setup directories
WORKDIR /schemacrawler
VOLUME /output
ENTRYPOINT ["./schemacrawler.sh"]