-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
32 lines (22 loc) · 1.12 KB
/
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
27
28
29
30
31
ARG SCHEMACRAWLER_VERSION
ARG LINTS_VERSION
FROM schemacrawler/schemacrawler:v${SCHEMACRAWLER_VERSION}
USER schcrwlr
WORKDIR /home/schcrwlr
LABEL \
"io.github.mbarre.product-version"="SchemaCrawler Additional Lints ${LINTS_VERSION}" \
"io.github.mbarre.website"="http://mbarre.github.io/schemacrawler-additional-lints/" \
"io.github.mbarre.docker-hub"="https://hub.docker.com/r/mbarre/schemacrawler-additional-lints"
MAINTAINER Michèle Barré <[email protected]>
USER root
RUN addgroup schcrwlr
# Copy linter config file
COPY --chown=schcrwlr:schcrwlr src/main/resources/schemacrawler-linter-config.xml .
# Copy additional-lints and additional-lints-csv local jar files
COPY --chown=schcrwlr:schcrwlr target/schemacrawler-additional-lints-*.jar /opt/schemacrawler/lib/
COPY --chown=schcrwlr:schcrwlr target/schemacrawler-additional-command-lints-as-csv-*.jar /opt/schemacrawler/lib/
RUN chmod +rx /opt/schemacrawler/lib/*.jar
# Create aliases for SchemaCrawler
RUN chmod +rx /opt/schemacrawler/schemacrawler.sh
USER schcrwlr
RUN echo 'alias schemacrawler="/opt/schemacrawler/schemacrawler.sh"' >> /home/schcrwlr/.bashrc