-
Notifications
You must be signed in to change notification settings - Fork 522
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
feature request: temporarily switch to user ROOT using xml configuration #2707
Comments
Hi @jochenr, How much effort is required for this? If I can take this up and start working on? |
Hello @Pushkal-G , sorry, cannot estimate how much effort it takes, since I don't know the codebase of JKube. Best regards, |
A very deep and important refactor. It's not a trivial task and will probably involve architectural decisions and breaking changes. |
So, what do you suggest, should i work on this? |
this is definitely not a good-first-issue or a help-wanted issue. In any case, feel free to suggest an approach or even a PR with a working PoC for further consideration. |
I think this pull request might be related to this issue fabric8io/docker-maven-plugin#1772 . A docker-maven-plugin contributor has created this pull request to allow specifying USER in Dockerfile with RUN commands |
Component
Kubernetes Maven Plugin
Is your enhancement related to a problem? Please describe
I like to build container (advanced) images without using a Dockerfile, so that I can have the whole configuration in my maven pom.xml.
Describe the solution you'd like
As discussed in #2703
It would be great if I can switch USERs several times during a build of a container image.
In a Dockerfile I can do something like this to switch to the root user for building the image and swuícth back at the end
This seems to be unpossible when using the XML configuration in a maven pom.
Using the tag I can get the "USER 185" line at the end of the genberated dockerfile
To use ROOT for executing a RUN command something like this would be good:
?
already has a subtag,
So for me it makes sense that the s within also get a way to specify a user.
Describe alternatives you've considered
As an alternative I can use a Dockefile
But I don't want to do that, because some images I have to use Dockerfiles while for others I can stay within the maven pom....
Additional context
No response
The text was updated successfully, but these errors were encountered: