Skip to content

Commit

Permalink
fix regression - Remove featuregate flag and run as container as root (
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee authored Dec 18, 2023
1 parent 7c31e88 commit 310159e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ protected GenericContainer<?> createAndStartCollectorForLogs(String configFilePa
.withLogConsumer(new Slf4jLogConsumer(collectorLogger))
.waitingFor(Wait.forLogMessage(".*Everything is ready. Begin running and processing data.*", 1))
.withEnv(createCollectorEnvVars(logStreamName))
.withCreateContainerCmdModifier(cmd -> cmd.withUser("root"))
.withClasspathResourceMapping("/logs", "/logs", BindMode.READ_WRITE)
.withCommand("--config", "/etc/collector/config.yaml", "--feature-gates=+adot.receiver.filelog,+adot.exporter.awscloudwatchlogs,+adot.extension.file_storage");
.withCommand("--config", "/etc/collector/config.yaml");

//Mount the Temp directory
collector.withFileSystemBind(logDirectory.toString(),"/tempLogs", BindMode.READ_WRITE);
Expand Down

0 comments on commit 310159e

Please sign in to comment.