Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8904

Karaf binary builds from karaf zip file ( oc start-build foo --from-file=karaf.zip )

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • FIS 2.0
    • FIS-Karaf
    • None

      Since FIS 1.0 we support Karaf binary builds from a directory "deployments" containing karaf.zip.

      Since OCP now supports binary builds directly --from-file, it would be nice to support these as well (that is, having the karaf.zip directly in the root)

      (Currently it is only possible to do "oc start-build karaf-bc --from-file=karaf.zip" only if user adds the following env to karaf-bc

          strategy:
            sourceStrategy:
              env:
              - name: ARTIFACT_DIR
                value: .
      

      Otherwise, the build will fail with

      Pulling image "docker-registry.usersys.redhat.com/fabric8/fis-karaf-openshift:2.0" ...
      Pulling image "docker-registry.usersys.redhat.com/fabric8/fis-karaf-openshift:2.0" ...
      Receiving source from STDIN as file sti-karaf-2.0.0-SNAPSHOT.zip
      
      ==================================================================
      Starting S2I Karaf Build .....
      Copying binary assembly from /tmp/src/deployments to /deployments ...
      Please specify an existing build directory ARTIFACT_DIR (tried '/tmp/src/deployments' which does not exist)
      
      error: build error: non-zero (13) exit code from docker-registry.usersys.redhat.com/fabric8/fis-karaf-openshift:2.0
      

              Unassigned Unassigned
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: