-
Hi, 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
How can I do the same in the maven plugin xml configuration?
But how can I use ROOT for executing
? has a subtag, while or do not have a way to specify a user. I'd apprectiate a hint how to solve this. thank you & best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I'm not sure whether it's possible to generate multiple user fields using plugin configuration. JKube also supports building via Dockerfile (see quickstarts/maven/docker-file-provided), Is it possible to switch to using Dockerfile with jkube? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the proposal. Basically it is possible to use a Dockerfile, but actually that's what I was trying to avoid😉. Nevertheless I'll give it a try. |
Beta Was this translation helpful? Give feedback.
This is not possible at the moment:
https://github.com/eclipse/jkube/blob/5da6068d7756784aef9569568ee80f98da97e296/jkube-kit/config/image/src/main/java/org/eclipse/jkube/kit/config/image/build/DockerFileBuilder.java#L111-L138