-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file permissions not set when 'fileMode' set in assembly descriptor #51
Comments
Good question. Will look into this for the next release, have to check the maven assembly plugin how it does the permission checks. |
i have a fix for this - it will be included w/ the rest of the assembly enhancements. |
this was fixed in 0.11.0 |
Hi, i'm using version 0.11.2 and it seems that this issue is not fixed. i explored the temporary tar from assembly plugin which takes care of filemode, the tar created by maven-docker-plugin does not. |
Perhaps its a windows issue since i'm building on a windows box |
Thanks for reporting, I'll try to have a look for this. |
i'm thinking this is windows related b/c the above works for me on a mac and linux machines. |
also, what is the value of trying to google but not coming up w/ much - it's possible this is a bug in the assembly plugin. can you also post your also what version of the assembly plugin did you try? i see there have been some bug fixes related to some file permissions. the |
my assembly.xml was : <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>docker</id>
<fileSets>
<fileSet>
<directory>${project.basedir}/src/main/docker/tagr</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
<filemode>755</filemode>
</fileSets>
</assembly> It is not a bug of the assembly plugin since creating a tar with mvn assembly:single -Ddescriptor=src/main/docker/assembly.xml creates the right attributes. And its surely a windows issue, since building on linux/macos creates the correct images. |
The problem is that the fat/ntfs, or any other file system like this ones, does not support linux like rights. |
i have the following in my assembly descriptor (it's just the relevant snippet)
when my container gets built, the startup script doesn't have the correct permissions. i'm not sure if this something that should work in the context of this plugin or not.
i also tried setting the permission directly on the local filesystem to see if they carry over but was unsuccessful there as well. right now i'm working around this by specifying
bash startup.sh
as the command but that somewhat less then idea.is this a bug? if not, do you have any suggestions on how this could be handled? i want this contained within the data container that gets built rather then mucking w/ the image that will be running it (which in this case is the 'official' tomcat instance).
The text was updated successfully, but these errors were encountered: