Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-8925

Build issue - modelmesh need buildId to build a new image

XMLWordPrintable

    • 2
    • False
    • None
    • False
    • Testable
    • No
    • No
    • No
    • Pending
    • None

      Description of problem:

      ModelMesh needs buildId to work properly but openshift-ci can not set it dynamically. Without the buildId, modelmesh runtime always failed. 

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. build the image
      2. deploy servingruntime
      3. create a sample isvc

      Actual results:

      Modelmesh container failed to run

      Expected results:

      Modelmesh should run without issues.

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Workaround:

      build manually with the following:

      GIT_COMMIT=$(git rev-parse HEAD)
      BUILD_ID=$(date '+%Y%m%d')-$(git rev-parse HEAD | cut -c -5)
      IMAGE_TAG_VERSION=0.11.0-alpha
      IMAGE_TAG=${IMAGE_TAG_VERSION}-$(git branch --show-current)_${BUILD_ID}
      
      docker build -t quay.io/opendatahub/modelmesh:${IMAGE_TAG_VERSION} \
          --build-arg imageVersion=${IMAGE_TAG} \
          --build-arg buildId=${BUILD_ID} \
          --build-arg commitSha=${GIT_COMMIT} . 

      Additional info:

              rhn-support-jlee JOOHO LEE
              rhn-support-jlee JOOHO LEE
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: