Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19934

Improve s390x (and other arches) dockerfile

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • build
    • None
    • s390x - Multi-Arch

    • Docs Required, Release Notes Required

    Description

      While I was working with the s390x version of the Apache Ignite docker image, I observed a few issues that worth considering. 

      1. The s390x image uses JDK instead of JRE which makes the image unnecessarily large 
      1. The “EXPOSE” clause of the s390x dockerfile misses 10800 and 8080 ports 
      1. The docker readme (https://github.com/apache/ignite/tree/master/deliveries/docker/apache-ignite#readme) Instructs to download and unpack the Ignite binary in the docker module but the s390x dockerfile accepts a version argument and downloads it from the file server. 

      The X86-64 dockerfile (https://github.com/apache/ignite/blob/master/deliveries/docker/apache-ignite/x86_64/Dockerfile) uses “eclipse-temuring” base image which supports 7 different architectures (some versions of it) and can be used for multi-arch build with very little changes. The only required change would be changing the base image version to “11-jre” and remove the “add bash” command since that image already has bash. This change would eliminate the need for having a docker image for each architecture. 

      I used the x86-64 dockerfile with the suggested changes to build on s390x and it worked fine. I can submit my patch file if it helps. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            ehsankianifar Ehsan Kiani Far
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: