Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-3094

s2i build using redhat-openjdk-18/openjdk18-openshift image 1.6 fails to copy source from git in to /deployments directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • JAVA8 1.6.0.GA
    • Java S2I
    • None
    • Openshift Contianer Platform: 3.7

    • Hide

      1. try performing s2i using an image redhat-openjdk-18/openjdk18-openshift 1.6
      2. find the source is not copying in to /deployments folder

      Show
      1. try performing s2i using an image redhat-openjdk-18/openjdk18-openshift 1.6 2. find the source is not copying in to /deployments folder

      RED HAT CONFIDENTIAL
      Description of problem:

      Customer has a working pipeline, where they were able to successfully perform s2i till redhat-openjdk-18/openjdk18-openshift 1.5, which broke after 1.6,

      Using the new 1.6 image customer get :
      21:32:57 Receiving source from STDIN as archive ...
      21:33:07 INFO S2I source build with plain binaries detected
      21:33:07 INFO Copying binaries from /tmp/src to /deployments ...
      21:33:07 skipping directory .
      21:33:15 Pushing image customerdomain.com/user-preferences-service:37c7d432qsngkfdsmfsadf3ab7b1ce2d081d ...

      Actual results:
      Upon investigating there is a change that are noticed between redhat-openjdk-18/openjdk18-openshift 1.5 and 1.6 images:
      broken(1.6) image runs: $ rsync -l --out-format=%n /tmp/src/ /deployments
      working(1.5) image runs: $ cp a /tmp/src/user-preferences-service<verison>-SNAPSHOT.jar /deployment

      Related git link:
      https://github.com/jboss-openshift/cct_module/commit/1ff1d9637979b1d0b116f247640f5330b20a7a45#diff-9c6f9f90f3792a35d51232b0732fdc8f

      Expected results:
      rsync should include "-r" switch to copy the files recursively which will successfully copy the source files in to deployment directory,

      $ rsync -rl --out-format=%n /tmp/src/ /deployments

              jdowland@redhat.com Jonathan Dowland
              rhn-support-msomasun Manikandan Somasundaram (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: