pipehub icon indicating copy to clipboard operation
pipehub copied to clipboard

Generate build application

Open diegobernardes opened this issue 5 years ago • 0 comments

Remove the generate program from pipehub. The pipehub command should be only used to the server.

Create a new application called build, bootstrap, or something like this. The idea is to include the whole source code inside the binary and even the Go compiler. Once the user gets this binary, it will be big, something like 150mb but it will include everything needed to get a pipehub server.

This command works with the same configuration file from the pipehub server and it will generate the binary on the output.

In case of cgo is the user responsibility to include the libs if they're not provided with the module that has the cgo dependency.

./pipehub-bootstrap pipehub.hcl # Should output a pipehub binary.

diegobernardes avatar Sep 14 '20 00:09 diegobernardes