Skip to content

Commit

Permalink
add support for MESOS_SANDBOX envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
James DeFelice committed Apr 14, 2017
1 parent ddb722a commit f98e510
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api/v1/lib/executor/config/config.go
Expand Up @@ -14,8 +14,13 @@ type Config struct {
FrameworkID string
// ExecutorID of the executor needed as part of the SUBSCRIBE call
ExecutorID string
// Directory is the path to the working directory for the executor
// Directory is the path to the working directory for the executor on the host filesystem (deprecated).
Directory string
// Sandbox is the path to the mapped sandbox inside of the container (determined by the agent flag
// `sandbox_directory`) for either mesos container with image or docker container. For the case of
// command task without image specified, it is the path to the sandbox on the host filesystem, which is
// identical to `MESOS_DIRECTORY`. `MESOS_DIRECTORY` is always the sandbox on the host filesystem.
Sandbox string
// AgentEndpoint is the endpoint i.e. ip:port to be used by the executor to connect
// to the agent
AgentEndpoint string
Expand Down Expand Up @@ -69,6 +74,7 @@ func fromEnv(getter func(string) string) (Config, error) {
FrameworkID: required("MESOS_FRAMEWORK_ID"),
ExecutorID: required("MESOS_EXECUTOR_ID"),
Directory: required("MESOS_DIRECTORY"),
Sandbox: required("MESOS_SANDBOX"),
AgentEndpoint: required("MESOS_AGENT_ENDPOINT"),
ExecutorShutdownGracePeriod: requiredDuration("MESOS_EXECUTOR_SHUTDOWN_GRACE_PERIOD"),
}
Expand Down

0 comments on commit f98e510

Please sign in to comment.