Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/hotspot/jtreg/containers/docker/TestJcmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ private static String generateCustomDockerfile() throws Exception {
String groupName = getId("-gn");
// Only needed when run as regular user. UID == 0 should already exist
if (!ROOT_UID.equals(uid)) {
sb.append(String.format("RUN groupmod -g 9999 $(getent group %s | cut -d: -f1) || true \n", gid));
sb.append(String.format("RUN groupadd --gid %s %s \n", gid, groupName));
sb.append(String.format("RUN useradd --uid %s --gid %s %s \n", uid, gid, userName));
sb.append(String.format("USER %s \n", userName));
Expand Down