If I omit -u root then jenkins uses 'docker run -t -d -u 993:990 -v
$HOME/.m2:/root/.m2' command to run the image. That works, but it will
download all dependencies every time. When using root user, the repository
is mounted and maven uses already downloaded dependencies.
Am Dienstag, 12. Mai
And how to mount .m2 directory then? Currently I do: args '-u root -v
$HOME/.m2:/root/.m2'
Am Dienstag, 12. Mai 2020 10:21:52 UTC+2 schrieb Gianluca:
>
> The best solution is not run any command as root inside docker.
> Use the environment variables UID and GID and run the docker with a user
>
The best solution is not run any command as root inside docker.
Use the environment variables UID and GID and run the docker with a user
corresponding to the UID and GIU; something like "--user $UID:$GID" instead
of root
On Tuesday, 12 May 2020 08:51:43 UTC+1, Den wrote:
>
> Hi,
>
> I'm