Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-772

Fineract Docker build fails on Fedora 30 with Podman instead of Docker, possibly due to ancient Gradle version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None
    • None

    Description

      When I run docker build -t fineract . from https://github.com/apache/fineract/pull/593 on Fedora 30 where I use Podman (sudo dnf install podman-docker) instead of Docker CE, then it fails for me like this:

      Unzipping /root/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275/gradle-2.10-bin.zip to /root/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275
      Set executable permissions for: /root/.gradle/wrapper/dists/gradle-2.10-bin/baigpnfu14tdk6ztbfwcl8275/gradle-2.10/bin/gradle
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Could not open terminal for stdout: $TERM not set
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      Error: error building at STEP "RUN ./gradlew clean war": error while running runtime: exit status 1

      I haven't investigated it further, but it looks like the ancient Gradle version 2.10 we still use in Fineract can't handle it if there is no $TERM set... Surprised that it works under Docker CE and not Podman (they should be very similar otherwise, for this kind of "build a simple Java app"), but unless other people hit this as well I'm going to suspect it's a problem specific only to Podman, so not a big deal (most people just use Docker, of course).

      I'll just park this, and retry it once FINERACT-700 upgraded Gradle.

      conradsp awasum just FYI (no action required)

      Attachments

        Issue Links

          Activity

            People

              vorburger Michael Vorburger
              vorburger Michael Vorburger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m