From 19f6ebfe34cb5fcd0d3d11a0b499906a19d1fad2 Mon Sep 17 00:00:00 2001 From: Rohith Date: Tue, 3 May 2016 12:13:24 +0100 Subject: [PATCH] - shifting the docker image to alpine:3.3 - changing the argument passed to the exec default filename i.e. either file= or path.type - fixing up the docker build - shifting to version v0.0.9-2 --- .gitignore | 1 + Dockerfile | 2 +- main.go | 2 +- utils.go | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2ba46c1..9a0870c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/runme.log *.iml *.swp diff --git a/Dockerfile b/Dockerfile index f983979..abbf5f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:latest +FROM alpine:3.3 MAINTAINER Rohith ADD bin/vault-sidekick /vault-sidekick diff --git a/main.go b/main.go index 3c5403d..718a55b 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ import ( const ( Prog = "vault-sidekick" - Version = "v0.0.9-1" + Version = "v0.0.9-2" ) func main() { diff --git a/utils.go b/utils.go index 94ac6e1..6606046 100644 --- a/utils.go +++ b/utils.go @@ -194,7 +194,7 @@ func processResource(rn *VaultResource, data map[string]interface{}) (err error) // step: check if we need to execute a command 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.Start() timer := time.AfterFunc(options.execTimeout, func() {