Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
Add user id support to the build command.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnudeep authored and Mirage20 committed Jun 27, 2019
1 parent 811388c commit dc1336b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/cli/pkg/commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func RunBuild(tag string, fileName string) {
}

balFileName := filepath.Base(tempBuildFileName)
cmd = exec.Command("docker", "exec", "-w", "/home/cellery/src", "-u", "1000",
cmd = exec.Command("docker", "exec", "-w", "/home/cellery/src", "-u", cliUser.Uid,
strings.TrimSpace(string(containerId)), constants.DOCKER_CLI_BALLERINA_EXECUTABLE_PATH, "run", "target/"+balFileName, "build", string(iName), "{}")
}
execError := ""
Expand Down

0 comments on commit dc1336b

Please sign in to comment.