Skip to content

Instantly share code, notes, and snippets.

@sualeh
Last active April 24, 2023 12:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sualeh/761e808f2803bba8e6f003e3276cf6e3 to your computer and use it in GitHub Desktop.
Save sualeh/761e808f2803bba8e6f003e3276cf6e3 to your computer and use it in GitHub Desktop.
Example of how to extend the SchemaCrawler Docker image
# ========================================================================
# Example of how to extend the SchemaCrawler Docker image. See
# https://github.com/schemacrawler/SchemaCrawler-Docker
# for instructions on how to use.
# ========================================================================
FROM schemacrawler/schemacrawler
USER schcrwlr
WORKDIR /home/schcrwlr
# Copy over any additional local jar files, such as proprietary JDBC drivers
COPY \
--chown=schcrwlr:schcrwlr \
./*.jar \
/opt/schemacrawler/lib/
MAINTAINER Sualeh Fatehi <sualeh@hotmail.com>
@sualeh
Copy link
Author

sualeh commented Feb 14, 2019

How to Extend the SchemaCrawler Docker Image

The SchemaCrawler Docker image can be extended to include any additional local jar files, such as proprietary JDBC drivers that cannot be publicly distributed. The following procedure is intended for privately built Docker images.

  1. Create a Dockerfile using this template.
  2. Include any additional jar files in the project directory.
  3. In the directory containing your Docker file, run the Docker build command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment