docker: second --ldflags was overriding the first --ldflags option

This commit is contained in:
Krishna Srinivas
2015-11-06 23:39:26 -08:00
parent 03f185db5f
commit f77851bee0
5 changed files with 20 additions and 9 deletions

View File

@@ -156,6 +156,9 @@ func main() {
probe.Init() // Set project's root source path.
probe.SetAppInfo("Release-Tag", minioReleaseTag)
probe.SetAppInfo("Commit-ID", minioShortCommitID)
if os.Getenv("DOCKERIMAGE") == "1" {
probe.SetAppInfo("Docker-Image", "true")
}
app := registerApp()
app.Before = func(c *cli.Context) error {