executable permission is never set
See original GitHub issueDescription of the issue:
If you add a executable file to src/main/resources or src/main/jib the resulting docker image will include the files only with mode 0644.
Expected behavior:
The files should have a mode of 0744
Additional Information:
Creates a new TarArchiveEntry for each File. The TarArchiveEntry will always use TarArchiveEntry. DEFAULT_FILE_MODE
for all files (0100644).
A possible change could be something like this:
if(java.nio.file.Files.isExecutable(sourceFile))
tarArchiveEntry.setMode(tarArchiveEntry.getMode() | 0100);
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (13 by maintainers)
Top Results From Across the Web
Chapter 17 Linux essentials Flashcards - Quizlet
The "execute" permission is never set on files by default. false. Which of the following chown commands will change the myFile user ownership...
Read more >can't change file permission - Unix & Linux Stack Exchange
Yes, this can occur if your device is formatted with a filesystem that does not support that kind of permission setting, such as...
Read more >Is executable permission mode S used for anything?
The output displays S if setuid is set, but user permissions do not include execute. However, as long as group or other can...
Read more >linux - How to set a file as NOT executable? - Super User
Just FYI. CHMOD is used to change permissions of a file. PERMISSION COMMAND U G W rwx rwx rwx...
Read more >chmod - Change the mode of a file or directory - IBM
chmod never changes the permissions of symbolic links (or external links), because, ... To set group read/write/execute permissions on the directory ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@danielpetisme Thanks for the suggestion! That syntax looks nice, though we are trying to limit new configuration objects to reduce the keep at a minimum the complexity of Jib’s configuration.
Based on your proposal, we came up with the following that changes the existing
extraDirectory
configuration to include permissions:Thoughts? @GoogleContainerTools/java-tools
I 👍 this issue. I’ve integrated jib into jhipster generator and I must use a custom
entrypoint.sh
. This file is stored undersrc/main/jib
and set as executable but once copied on the container image, the file is not executable anymore. This problem forces me to run a dirctychmod +x
before running the script 😢 It’s not a blocking point but its a pitfall we could avoid.I don’t how I could help?