From d188d0c23fbc7c85d6321fe24f4df6d40cec41b9 Mon Sep 17 00:00:00 2001 From: Thisaru Guruge Date: Wed, 15 Nov 2023 16:32:17 +0530 Subject: [PATCH] Change to root --- .../groovy/io/ballerina/plugin/BallerinaPlugin.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/groovy/io/ballerina/plugin/BallerinaPlugin.groovy b/src/main/groovy/io/ballerina/plugin/BallerinaPlugin.groovy index 6599afd..854576a 100644 --- a/src/main/groovy/io/ballerina/plugin/BallerinaPlugin.groovy +++ b/src/main/groovy/io/ballerina/plugin/BallerinaPlugin.groovy @@ -298,7 +298,7 @@ class BallerinaPlugin implements Plugin { } createDockerEnvFile("$project.projectDir/docker.env") def balPackWithDocker = """ - docker run --env-file $project.projectDir/docker.env --rm --net=host --user 1000:1000 \ + docker run --env-file $project.projectDir/docker.env --rm --net=host -u root \ -v $parentDirectory:/home/ballerina/$parentDirectory.name \ -v $projectDirectory:/home/ballerina/$parentDirectory.name/$projectDirectory.name \ ballerina/ballerina:$ballerinaDockerTag \ @@ -330,7 +330,7 @@ class BallerinaPlugin implements Plugin { ballerinaDockerTag = dockerTag } def balTestWithDocker = """ - docker run --env-file $project.projectDir/docker.env --rm --net=host --user 1000:1000 \ + docker run --env-file $project.projectDir/docker.env --rm --net=host -u root \ -v $parentDirectory:/home/ballerina/$parentDirectory.name \ -v $projectDirectory:/home/ballerina/$parentDirectory.name/$projectDirectory.name \ ballerina/ballerina:$ballerinaDockerTag \ @@ -377,7 +377,7 @@ class BallerinaPlugin implements Plugin { ballerinaDockerTag = dockerTag } def balPushWithDocker = """ - docker run --env-file $project.projectDir/docker.env --rm --net=host --user 1000:1000 \ + docker run --env-file $project.projectDir/docker.env --rm --net=host -u root \ -v $parentDirectory:/home/ballerina/$parentDirectory.name \ -v $projectDirectory:/home/ballerina/$parentDirectory.name/$projectDirectory.name \ ballerina/ballerina:$ballerinaDockerTag \ @@ -437,7 +437,7 @@ class BallerinaPlugin implements Plugin { if (buildOnDocker) { createDockerEnvFile("$project.projectDir/docker.env") def balTestWithDocker = """ - docker run --env-file $project.projectDir/docker.env --rm --net=host --user 1000:1000 \ + docker run --env-file $project.projectDir/docker.env --rm --net=host -u root \ -v $parentDirectory:/home/ballerina/$parentDirectory.name \ -v $projectDirectory:/home/ballerina/$parentDirectory.name/$projectDirectory.name \ ballerina/ballerina:$ballerinaDockerTag \ @@ -472,7 +472,7 @@ class BallerinaPlugin implements Plugin { if (buildOnDocker) { project.exec { def deleteUsingDocker = """ - docker run --user 1000:1000 \ + docker run -u root \ -v $parentDirectory:/home/ballerina/$parentDirectory.name \ -v $projectDirectory:/home/ballerina/$parentDirectory.name/$projectDirectory.name \ ballerina/ballerina:$ballerinaDockerTag \