snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

/app folder not readable by others, when Jib extra directories feature is used #213

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Describe the bug When Jib extra directory feature is used (introduced in https://github.com/quarkusio/quarkus/issues/8936) by putting files into src/main/jib folder, if the app folder is used here (e.g. with a file src/main/jib/app/foo), then the /app folder created in the container image does not have "o+x" permission.

Expected behavior /app folder in the container image has "o+x" permission, like it does when Jib extra directories feature is not used.

Actual behavior /app folder in the container image doesn't have "o+x" permission, thus not allowing non-root users to load the app.

To Reproduce

Steps to reproduce the behavior:

  1. Use Jib for creating container image.
  2. Add some files in src/main/jib/app/ folder.

Environment (please complete the following information):

Additional context (Add any other context about the problem here.)


https://github.com/quarkusio/quarkus/issues/13322


$upstream:13322$