2021-10-01 13:59:55 +00:00
|
|
|
//go:build !ui
|
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
|
|
|
|
}
|