;

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-03-20 01:54:27 -04:00
parent 93c26b127d
commit 42aa4f111d
No known key found for this signature in database
GPG key ID: 18F3685C0022BFF3
3 changed files with 8 additions and 3 deletions

View file

@ -17,7 +17,7 @@ alpine: generate
CGO_ENABLED=1 go build \ CGO_ENABLED=1 go build \
-tags "$(BUILDTAGS) static_build" \ -tags "$(BUILDTAGS) static_build" \
${GO_LDFLAGS_STATIC} -o $@ ./examples/$@/... ${GO_LDFLAGS_STATIC} -o $@ ./examples/$@/...
@echo "Static container for alpine created at: ./$@" @echo "Static container for $@ created at: ./$@"
.PHONY: busybox .PHONY: busybox
busybox: generate busybox: generate
@ -25,7 +25,7 @@ busybox: generate
CGO_ENABLED=1 go build \ CGO_ENABLED=1 go build \
-tags "$(BUILDTAGS) static_build" \ -tags "$(BUILDTAGS) static_build" \
${GO_LDFLAGS_STATIC} -o $@ ./examples/$@/... ${GO_LDFLAGS_STATIC} -o $@ ./examples/$@/...
@echo "Static container for alpine created at: ./$@" @echo "Static container for $@ created at: ./$@"
.PHONY: fmt .PHONY: fmt
fmt: ## Verifies all files have men `gofmt`ed fmt: ## Verifies all files have men `gofmt`ed

View file

@ -17,6 +17,7 @@ type SpecOpts struct {
Rootless bool Rootless bool
Readonly bool Readonly bool
Terminal bool Terminal bool
Args []string
Hooks *specs.Hooks Hooks *specs.Hooks
} }
@ -50,5 +51,9 @@ func Spec(opts SpecOpts) *specs.Spec {
} }
} }
if opts.Args != nil {
spec.Process.Args = opts.Args
}
return spec return spec
} }

View file

@ -1,6 +1,6 @@
// Code generated by go-bindata. // Code generated by go-bindata.
// sources: // sources:
// ../../../../../../../../../tmp/container-lib641145956/image.tar // ../../../../../../../../../tmp/container-lib409629835/image.tar
// DO NOT EDIT! // DO NOT EDIT!
package main package main