Skip to content

Commit

Permalink
Merge cd04047 into 948c633
Browse files Browse the repository at this point in the history
  • Loading branch information
jdef committed Apr 14, 2017
2 parents 948c633 + cd04047 commit 5f62327
Show file tree
Hide file tree
Showing 16 changed files with 11,115 additions and 2,244 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ go:
- 1.6.x
- 1.7.x
- 1.8
- tip
before_install:
#these two lines help users who fork mesos-go. It's a noop when running from the mesos organization
- RepoName=`basename $PWD`; SrcDir=`dirname $PWD`; DestDir="`dirname $SrcDir`/mesos"
Expand Down
8 changes: 7 additions & 1 deletion api/v1/lib/executor/config/config.go
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 5f62327

Please sign in to comment.