Skip to content

Commit

Permalink
refactor: use non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
npepinpe committed Dec 20, 2023
1 parent bd1e894 commit 71849eb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ void shouldGenerateData() throws IOException {
final Path destination = tempDir.resolve(DATA_DIR);

// when
try (final ZeebeContainer container = new ZeebeContainer().withZeebeData(volume)) {
try (final ZeebeContainer container =
new ZeebeContainer()
.withCreateContainerCmdModifier(cmd -> cmd.withUser("1001:0"))
.withZeebeData(volume)) {
container.start();
deployProcess(container);
}
Expand Down Expand Up @@ -110,6 +113,7 @@ void shouldRestartWithGeneratedData() {
// when
try (final ZeebeContainer container =
new ZeebeContainer()
.withCreateContainerCmdModifier(cmd -> cmd.withUser("1001:0"))
.withCopyFileToContainer(
MountableFile.forHostPath(dataPath),
ZeebeDefaults.getInstance().getDefaultDataPath())) {
Expand Down

0 comments on commit 71849eb

Please sign in to comment.