Skip to content

Commit

Permalink
Singlestore jdbc Quarkus native support: Docker with security elevated
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemantkumar-Chigadani committed Oct 21, 2024
1 parent 6447a29 commit c6b3e9b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public RunningDevServicesDatasource startDatabase(Optional<String> username, Opt
File dbUserSqlFile = dbUserSql.toFile();
dbUserSqlFile.deleteOnExit();
container.withCreateContainerCmdModifier(it -> HostConfig.newHostConfig().withCapAdd(Capability.SYS_ADMIN)
.withSecurityOpts(List.of("apparmor:unconfined")));
.withSecurityOpts(
List.of("apparmor:unconfined", "label=disable", "seccomp=unconfined", "unmask=all")));
container.withFileSystemBind(dbUserSqlFile.getAbsolutePath(), "/init.sql", BindMode.READ_ONLY);
// container.withPrivilegedMode(true);
} catch (IOException e) {
Expand Down

0 comments on commit c6b3e9b

Please sign in to comment.