Skip to content

Commit

Permalink
Merge pull request #1962 from hashicorp/b-env-vars
Browse files Browse the repository at this point in the history
Fix env vars relating to secretdir
  • Loading branch information
dadgar authored Nov 8, 2016
2 parents 1199995 + 17cab6e commit aef16a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/driver/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (d *DockerDriver) createContainerConfig(ctx *ExecContext, task *structs.Tas
// Set environment variables.
d.taskEnv.SetAllocDir(allocdir.SharedAllocContainerPath)
d.taskEnv.SetTaskLocalDir(allocdir.TaskLocalContainerPath)
d.taskEnv.SetTaskLocalDir(allocdir.TaskSecretsContainerPath)
d.taskEnv.SetSecretsDir(allocdir.TaskSecretsContainerPath)

config := &docker.Config{
Image: driverConfig.ImageName,
Expand Down
1 change: 1 addition & 0 deletions client/driver/executor/executor_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ func (e *UniversalExecutor) configureChroot() error {
e.ctx.TaskEnv.
SetAllocDir(filepath.Join("/", allocdir.SharedAllocName)).
SetTaskLocalDir(filepath.Join("/", allocdir.TaskLocal)).
SetSecretsDir(filepath.Join("/", allocdir.TaskSecrets)).
Build()

if e.cmd.SysProcAttr == nil {
Expand Down

0 comments on commit aef16a2

Please sign in to comment.