You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did not used the <paths> parameter because as explained here, by default, Jib uses src/main/jib/ as the default path if the parameter is not set.
NB: /app/docker-entry-point.sh exists in src/main/jib/. What this files contains doesn't matter.
So, assuming that the <paths> is set when I use the <permissions> parameter, I execute mvn jib:dockerBuild. When I explore the docker image (thanks dive), I notice that the entry point still has the default permission ("644").
It makes sense to use the paths and the permissions parameters together if the path has not the default value, but I don't understand why I must explicitly use <paths>src/main/jib</paths> in odrer to set file permissions properly. It seems redundant.
Expected behavior:
I expect the file to have this permission: "755" ( -rwx-r-xr-x)
Steps to reproduce:
Create a simple Maven project and create a docker-entry-point.sh in src/main/jib.
Thanks for the report. We weren't aware of this, but it turns out this is fixed in #2108 we merged after releasing 1.8.0. The fix will be included in the next release.
Environment:
Description of the issue:
I wrote this piece of XML content in my
pom.xml
:I did not used the
<paths>
parameter because as explained here, by default, Jib usessrc/main/jib/
as the default path if the parameter is not set.NB:
/app/docker-entry-point.sh
exists insrc/main/jib/
. What this files contains doesn't matter.So, assuming that the
<paths>
is set when I use the<permissions>
parameter, I executemvn jib:dockerBuild
. When I explore the docker image (thanks dive), I notice that the entry point still has the default permission ("644").Screenshot
However, it works properly when I use the
<paths>
:It makes sense to use the
paths
and thepermissions
parameters together if the path has not the default value, but I don't understand why I must explicitly use<paths>src/main/jib</paths>
in odrer to set file permissions properly. It seems redundant.Expected behavior:
I expect the file to have this permission: "755" (
-rwx-r-xr-x
)Steps to reproduce:
docker-entry-point.sh
insrc/main/jib
.mvn jib:dockerBuild
dive <id_of_the_docker_image>
The text was updated successfully, but these errors were encountered: