github.com/quite/nomad@v0.8.6/command/agent/stub_asset.go (about) 1 // +build !ui 2 3 package agent 4 5 import ( 6 assetfs "github.com/elazarl/go-bindata-assetfs" 7 ) 8 9 func init() { 10 uiEnabled = false 11 stubHTML = `<!DOCTYPE html> 12 <html> 13 <p>Nomad UI is not available in this binary. To get Nomad UI do one of the following:</p> 14 <ul> 15 <li><a href="https://www.nomadproject.io/downloads.html">Download an official release</a></li> 16 <li>Run <pre>make release</pre> to create your own release binaries. 17 <li>Run <pre>make dev-ui</pre> to create a development binary with the UI. 18 </ul> 19 </html> 20 ` 21 } 22 23 // assetFS is a stub for building Nomad without a UI. 24 func assetFS() *assetfs.AssetFS { 25 return nil 26 }