b879ec85cc
The null builder is not really a bulider, it just setups a SSH connection and runs the provisioners. It can be used to debug provisioners without incurring high wait times. It does not create any kind of image or artifact.
16 lines
255 B
Go
16 lines
255 B
Go
package main
|
|
|
|
import (
|
|
"github.com/mitchellh/packer/builder/null"
|
|
"github.com/mitchellh/packer/packer/plugin"
|
|
)
|
|
|
|
func main() {
|
|
server, err := plugin.Server()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
server.RegisterBuilder(new(null.Builder))
|
|
server.Serve()
|
|
}
|