This is a Go engine used to launch Go apps on Nanobox.
To use the Go engine, specify golang
as your engine
in your boxfile.yml.
run.config:
engine: golang
When building your runtime, this engine compiles code by doing the following:
> go get
> go build
These commands can be modified using the fetch and build config options
This engine exposes configuration options through the boxfile.yml, a yaml config file used to provision and configure your app's infrastructure when using Nanobox. This engine makes the following options available.
run.config:
engine: golang
engine.config:
# Go Settings
runtime: go-1.8
package: 'github.com/username/code'
fetch: 'go get'
build: 'go build'
Specifies which Golang runtime to use. The following runtimes are available:
- go-1.4
- go-1.5
- go-1.6
- go-1.7
- go-1.8 (default)
- go-1.9
run.config:
engine: golang
engine.config:
runtime: go-1.8
Specifies the path to the directory in which your code is stored. This can be a local or remote directory.
run.config:
engine: golang
engine.config:
package: 'github.com/username/code'
Defines the command to run to load dependencies in the build process.
run.config:
engine: golang
engine.config:
fetch: 'go get'
Defines the command to run to compile your code in the build process.
run.config:
engine: golang
engine.config:
build: 'go build'
- Make cleanup function
uninstall_build_dependencies
This is a Go engine provided by Nanobox. If you are running into an issue with the engine, feel free to create a new issue on this project.