-
Notifications
You must be signed in to change notification settings - Fork 644
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
Cannot apply patch to base image #53
Comments
This has been discussed here: moby/moby#6119 |
Good point. I'm just cutting a new release, hopefully I get this in right now (if not, next week is the next release scheduled). I wonder whether there is a risk that somebody is relying on the original behaviour that the directory is set to uid 0 (currently I can't imagine a use case for this). |
BTW, in the documentation they state that also for Have to check this on my own I guess .... |
Just changed this to use What we could do is to add an explicit UID to the configuration or we wait until full Dockerfile support is available (as described in #62 , a dedicated ticket is still pending). Also, you base image could use the Still have to think a bit, for the release now, I'm afraid that the change ADD to COPY doesn't really helps you. |
There is no rush - I have this workaround
which preserves ownership of existing directories. I feel that this should somehow be addressed at the docker level |
A little more background ... It is best practise in Docker not to run apps as root. For all our stuff we use a jboss/base image that creates a ADD/COPY always use As a consequence, ADD/COPY cannot be used with a user owned dir structure unless some file ownership hack go with it. |
I wonder how Docker deals with this is the recommendation to do an But no problem, we are on it so that in one of the next version it should be possible to add an user or the export directory (see also #64) |
is this still an issue as of the 0.11.1 release? |
We are using a wildfly base image with an applied patch. The Dockerfile is
It seems that I cannot apply a patch with the docker-maven-plugin because it replaces /opt/jboss/wildfly and does not add to it.
To reproduce, please build
https://github.com/tdiesler/wildfly-camel/tree/docker-mvn-plugin
In docker/pom.xml I commented out the wanted target config
The text was updated successfully, but these errors were encountered: