Documentation ¶
Index ¶
- Variables
- func Build(topDir, workerImg llb.State, specPath string, opts ...llb.ConstraintsOpt) llb.State
- func BuildrootHandler(target string) frontend.BuildFunc
- func Dalec2SourcesLLB(spec *dalec.Spec, sOpt dalec.SourceOpts, opts ...llb.ConstraintsOpt) ([]llb.State, error)
- func Dalec2SpecLLB(spec *dalec.Spec, in llb.State, target, dir string, opts ...llb.ConstraintsOpt) (llb.State, error)
- func HandleSources(ctx context.Context, client gwclient.Client, spec *dalec.Spec) (gwclient.Reference, *dalec.DockerImageSpec, error)
- func RegisterHandlers(group string)
- func SpecHandler(target string) frontend.BuildFunc
- func SpecToBuildrootLLB(spec *dalec.Spec, target string, sOpt dalec.SourceOpts, ...) (llb.State, error)
- func ValidateSpec(spec *dalec.Spec) (out error)
- func WriteSpec(spec *dalec.Spec, target string, w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
var TarImageRef = "busybox:latest"
TarImageRef is the image used to create tarballs of sources This is purposefully exported so it can be overridden at compile time if needed. Currently this image needs /bin/sh and tar in $PATH
Functions ¶
func Build ¶
Builds an RPM and source RPM from a spec
`topDir` is the rpmbuild top directory which should contain the SOURCES and SPECS directories along with any other necessary files
`workerImg` is the image to use for the build It is expected to have rpmbuild and any other necessary build dependencies installed
`specPath` is the path to the spec file to build relative to `topDir`
func BuildrootHandler ¶
func Dalec2SourcesLLB ¶
func Dalec2SourcesLLB(spec *dalec.Spec, sOpt dalec.SourceOpts, opts ...llb.ConstraintsOpt) ([]llb.State, error)
func Dalec2SpecLLB ¶
func HandleSources ¶
func RegisterHandlers ¶
func RegisterHandlers(group string)
func SpecHandler ¶
func SpecToBuildrootLLB ¶
func SpecToBuildrootLLB(spec *dalec.Spec, target string, sOpt dalec.SourceOpts, opts ...llb.ConstraintsOpt) (llb.State, error)
SpecToBuildrootLLB converts a dalec.Spec to an rpm buildroot
func ValidateSpec ¶ added in v0.2.0
ValidateSpec makes sure all the necessary fields are present in the spec to make rpmbuild work This validation is specific to rpmbuild.
Types ¶
This section is empty.