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

allow extensions installation from secrets mounted in s2i builds

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Minor
    • None
    • EAP70 1.5.0.GA
    • EAP6, EAP7, Upstream
    • None
    • 0
    • 0% 0%

    Description

      Trying to use an extension (directory with install.sh) with CUSTOM_INSTALL_DIRECTORIES to install an extension from a build secret doesn't seem to work, as the install.sh cannot be chmod'ed (as it is mounted as a secret apparently)

      It would be nice if assembly ran the install.sh in a way that would also work with secrets (e.g. copied it first to /tmp/... and chmod and run it there... )

          source:
            git:
              uri: http://some.gitlab.example.com/someproject
            secrets:
            - destinationDir: extensions
              secret:
                name: extension
            type: Git
          strategy:
            sourceStrategy:
              env:
              - name: CUSTOM_INSTALL_DIRECTORIES
                value: ../extensions
      

      With the extension secret containing:
      install.sh
      preconfigure.sh

      results in

      chmod: changing permissions of '/home/jboss/source/../extensions/install.sh': Operation not permitted
      /usr/local/s2i/assemble: line 118: /home/jboss/source/../extensions/install.sh: Permission denied
      chmod: changing permissions of '/home/jboss/extensions': Operation not permitted
      chmod: changing permissions of '/home/jboss/extensions/..4984_04_04_10_54_21.717940765': Operation not permitted
      chmod: changing permissions of '/home/jboss/extensions/..4984_04_04_10_54_21.717940765/install.sh': Operation not permitted
      chmod: changing permissions of '/home/jboss/extensions/..4984_04_04_10_54_21.717940765/preconfigure.sh': Operation not permitted
      

      Attachments

        Activity

          People

            wdecoste1@redhat.com William Decoste (Inactive)
            maschmid@redhat.com Marek Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: