Skip to content

Commit

Permalink
Workaround for the issue when tar is executed in a docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
dcihak committed Jan 9, 2024
1 parent 91fa0f0 commit 0a60e51
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ private String unpackHelmClientArchive(final Path archivePath, final boolean del
Objects.requireNonNull(archivePath);

try {
// --no-same-owner argument is added for the docker container execution where tar gets wrong ownership information
// due to the context of the builder
List<String> args = Stream
.of("tar", "-xf", archivePath.toAbsolutePath().toString(), "-C",
getProjectHelmDir().toAbsolutePath().toString())
getProjectHelmDir().toAbsolutePath().toString(), "--no-same-owner")
.collect(Collectors.toList());
ProcessBuilder pb = new ProcessBuilder(args);

Expand Down

0 comments on commit 0a60e51

Please sign in to comment.