Code Monkey home page Code Monkey logo

docker-mapfish-print2's Introduction

docker-mapfish-print2

Docker image and tools for MapFish Print (MFP) VERSION 2 legacy.

This version is still used in quite some contexts.

If you read this on DockerHub, local links will not work, read full README here.

Log4J Security fix

Read more here. Bottom line: this project does not use Log4J2 (but v1)!

Building

With the script build.sh the Docker image can be build from the Dockerfile but this is not really necessary as you may use your own docker build commandline.

Build arguments with values if not passed to build:

  • IMAGE_TIMEZONE - timezone of Docker image, default "Europe/Amsterdam"
  • IMAGE_LOCALE - locale of Docker image, default "nl_NL.UTF-8"
  • MFPRINT_VERSION - MapFish Print (Servlet) version, default "2.1-SNAPSHOT"

Versions

I found that 2.1-SNAPSHOT was the highest MFP2 version that worked (for me). These come from https://oss.sonatype.org/content/repositories/snapshots/org/mapfish/print/print-servlet/. If you are able to get a higher version working, let me know, via the issue-tracker.

Build Options

The files under the config dir are automatically integrated in the Docker image as follows:

You can adapt these or use a prebuilt Docker Image and use Volume mapping or extend the image.

Running

See the examples directory for how to run with your own config. The main things to do are:

Example:

    <!-- Example how to configure for your YAML config(s) -->
    <servlet>
        <servlet-name>mapfish.print.default</servlet-name>
        <servlet-class>org.mapfish.print.servlet.MapPrinterServlet</servlet-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>config/config.default.yaml</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>mapfish.print.default</servlet-name>
        <url-pattern>/pdf.default/*</url-pattern>
    </servlet-mapping>

  • mount these files into the container using Docker Volume mount (or extend the Docker build)
  • optional: provide HTML test-pages, see examples

Credits

docker-mapfish-print2's People

Contributors

justb4 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.