add exapmples
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
34cef96c16
commit
1f926d9a72
3 changed files with 106 additions and 2 deletions
18
examples/alpine/generate.go
Normal file
18
examples/alpine/generate.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
// +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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue