Commit 60e3cbb2 authored by ale's avatar ale

Use the classic fake GOPATH to build binary

parent fc4c1b57
Pipeline #1133 passed with stages
in 48 seconds
PKG := git.autistici.org/ai3/float-dashboard
PKG_PARENT_PATH := git.autistici.org/ai3
all: build/float-dashboard
build/float-dashboard: $(wildcard *.go templates/*.html)
-mkdir -p build
# Standard annoying fake-GOPATH trick.
-mkdir -p build/src/$(PKG_PARENT_PATH)
test -e build/src/$(PKG) \
|| ln -s `pwd` build/src/$(PKG)
# Do not run 'go generate' on Docker builds.
#go generate
go build -o $@ -tags netgo -a -ldflags -w .
GOPATH=`pwd`/build go build -o $@ -tags netgo -a -ldflags -w $(PKG)
......@@ -821,7 +821,7 @@ func staticJsJquerySlimMinJs() (*asset, error) {
return a, nil
}
var _templatesContainer_detailsHtml = []byte(`{{template "header" "float services"}}
var _templatesContainer_detailsHtml = []byte(`{{template "header" "container details"}}
{{$domain := .Config.Domain}}
<h1>{{$domain}} / service {{.Service.Name}} / container {{.Container.Name}}</h1>
......@@ -841,7 +841,7 @@ func templatesContainer_detailsHtml() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/container_details.html", size: 208, mode: os.FileMode(436), modTime: time.Unix(1533928751, 0)}
info := bindataFileInfo{name: "templates/container_details.html", size: 211, mode: os.FileMode(436), modTime: time.Unix(1533929237, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
......@@ -1017,7 +1017,7 @@ func templatesIndexHtml() (*asset, error) {
return a, nil
}
var _templatesService_detailsHtml = []byte(`{{template "header" "float services"}}
var _templatesService_detailsHtml = []byte(`{{template "header" "service details"}}
{{$domain := .Config.Domain}}
<h1>{{$domain}} / service {{.Service.Name}}</h1>
......@@ -1038,7 +1038,7 @@ func templatesService_detailsHtml() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/service_details.html", size: 175, mode: os.FileMode(436), modTime: time.Unix(1533928740, 0)}
info := bindataFileInfo{name: "templates/service_details.html", size: 176, mode: os.FileMode(436), modTime: time.Unix(1533929243, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment