Skip to content

The Unified and Autonomous Development Platform

docs: Clarify sandbox template user requirements

Robin Shen54b2035619a9
diff --git a/server-core/src/main/java/io/onedev/server/buildspec/job/Job.java b/server-core/src/main/java/io/onedev/server/buildspec/job/Job.java
index 0a67f7b419..8d5fbbb110 100644
--- a/server-core/src/main/java/io/onedev/server/buildspec/job/Job.java
+++ b/server-core/src/main/java/io/onedev/server/buildspec/job/Job.java
@@ -200,7 +200,7 @@ public class Job implements NamedElement, Validatable {
this.executeInSandbox = executeInSandbox;
}
- @Editable(order=220)
+ @Editable(order=220, description="Shell commands run as the template image's default user. A non-root default user must have passwordless sudo access.")
@Interpolative(variableSuggester="suggestVariables")
@DependsOn(property="executeInSandbox")
@NotEmpty
diff --git a/server-plugin/server-plugin-executor-serversandbox/src/main/java/io/onedev/server/plugin/executor/serversandbox/ServerSandboxExecutor.java b/server-plugin/server-plugin-executor-serversandbox/src/main/java/io/onedev/server/plugin/executor/serversandbox/ServerSandboxExecutor.java
index 04002a61b1..6fd2eb8f39 100644
--- a/server-plugin/server-plugin-executor-serversandbox/src/main/java/io/onedev/server/plugin/executor/serversandbox/ServerSandboxExecutor.java
+++ b/server-plugin/server-plugin-executor-serversandbox/src/main/java/io/onedev/server/plugin/executor/serversandbox/ServerSandboxExecutor.java
@@ -291,7 +291,7 @@ public class ServerSandboxExecutor extends JobExecutor implements SandboxAware,
@Editable(order=100, description="""
Specify a Docker sandbox shell template image to test against. This image should \
- contain Python 3 and Git, and also configured with docker daemon if you also want \
+ contain Python 3 and Git, provide passwordless sudo for its default user, and be configured with a Docker daemon if you also want \
to run container inside it""")
@NotEmpty
public String getTemplate() {