- shifting the docker image to alpine:3.3

- changing the argument passed to the exec default filename i.e. either file=<FILE> or path.type
- fixing up the docker build
- shifting to version v0.0.9-2
This commit is contained in:
Rohith 2016-05-03 12:13:24 +01:00
parent b128a08f7e
commit 19f6ebfe34
4 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/runme.log
*.iml *.iml
*.swp *.swp

View file

@ -1,4 +1,4 @@
FROM alpine:latest FROM alpine:3.3
MAINTAINER Rohith <gambol99@gmail.com> MAINTAINER Rohith <gambol99@gmail.com>
ADD bin/vault-sidekick /vault-sidekick ADD bin/vault-sidekick /vault-sidekick

View file

@ -26,7 +26,7 @@ import (
const ( const (
Prog = "vault-sidekick" Prog = "vault-sidekick"
Version = "v0.0.9-1" Version = "v0.0.9-2"
) )
func main() { func main() {

View file

@ -194,7 +194,7 @@ func processResource(rn *VaultResource, data map[string]interface{}) (err error)
// step: check if we need to execute a command // step: check if we need to execute a command
if rn.execPath != "" { if rn.execPath != "" {
glog.V(10).Infof("executing the command: %s for resouce: %s", rn.execPath, rn.path) glog.V(10).Infof("executing the command: %s for resource: %s", rn.execPath, filename)
cmd := exec.Command(rn.execPath, filename) cmd := exec.Command(rn.execPath, filename)
cmd.Start() cmd.Start()
timer := time.AfterFunc(options.execTimeout, func() { timer := time.AfterFunc(options.execTimeout, func() {