binctr/examples/alpine/generate.go
Jess Frazelle 1f926d9a72 add exapmples
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-20 01:56:53 -04:00

18 lines
329 B
Go

// +build ignore
package main
import (
"fmt"
"os"
"github.com/genuinetools/binctr/container"
)
// Pulls an image and saves the binary data in the container package bindata.go.
func main() {
if err := container.EmbedImage("alpine"); err != nil {
fmt.Fprintf(os.Stderr, "embed image failed: %v\n", err)
os.Exit(1)
}
}