open-nomad/command/agent/stub_asset.go

27 lines
615 B
Go
Raw Normal View History

2017-09-19 14:47:10 +00:00
// +build !ui
package agent
import (
assetfs "github.com/elazarl/go-bindata-assetfs"
)
func init() {
uiEnabled = false
stubHTML = `<!DOCTYPE html>
<html>
<p>Nomad UI is not available in this binary. To get Nomad UI do one of the following:</p>
<ul>
<li><a href="https://www.nomadproject.io/downloads.html">Download an official release</a></li>
<li>Run <pre>make release</pre> to create your own release binaries.
<li>Run <pre>make dev-ui</pre> to create a development binary with the UI.
</ul>
</html>
`
}
// assetFS is a stub for building Nomad without a UI.
func assetFS() *assetfs.AssetFS {
return nil
}