Uploaded image for project: 'XWiki Docker images'
  1. XWiki Docker images
  2. XDOCKER-436

Make the XWiki image easier to extend and to rebuild with customizations

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • Unknown

    Description

      Context

      Some downstream users need to ship customizations on top of XWiki in their own Docker image. Today they tend to rebuild their image from scratch, independently of the official one, because they find the official image hard to extend and, in some cases, not secure enough for their policies. Each rebuild then drifts from the official image and misses its fixes.

      Need

      Building a custom image on top of the official one, or from the same build, must be straightforward for at least these customizations:

      • preinstalling XWiki extensions (XAR and JAR) in the image;
      • overriding configuration: xwiki.cfg, xwiki.properties, hibernate.cfg.xml, Tomcat and JVM options;
      • adding OS-level elements, such as CA certificates, fonts or another JDBC driver;
      • producing the same image on a different base image, for example a hardened or internally mirrored one.

      Current state

      • Each image is generated from a single Dockerfile template with a fixed tomcat base image. Using another base means forking the template and the Gradle generation.
      • The entrypoint configures XWiki at container start: it edits the configuration files in place, then copies any saved configuration files from the /usr/local/xwiki/data volume over them. A configuration baked into a derived image can be modified or replaced at startup.
      • The entrypoint offers no hook to run additional startup steps.
      • The image provides no documented way to preinstall extensions.

      Users who rebuilt their own image are welcome to comment with the concrete obstacles they hit.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: