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