Documentation ¶
Index ¶
- func AptInstall(packages []string, opts ...llb.ConstraintsOpt) llb.RunOption
- func InstallLocalPkg(pkg llb.State, opts ...llb.ConstraintsOpt) llb.RunOption
- type Config
- func (c *Config) BuildContainer(worker llb.State, sOpt dalec.SourceOpts, client gwclient.Client, ...) (llb.State, error)
- func (d *Config) BuildDeb(ctx context.Context, worker llb.State, sOpt dalec.SourceOpts, ...) (llb.State, error)
- func (cfg *Config) BuildImageConfig(ctx context.Context, resolver llb.ImageMetaResolver, spec *dalec.Spec, ...) (*dalec.DockerImageSpec, error)
- func (cfg *Config) Handle(ctx context.Context, client gwclient.Client) (*gwclient.Result, error)
- func (c *Config) HandleContainer(ctx context.Context, client gwclient.Client) (*gwclient.Result, error)
- func (cfg *Config) HandleDeb(ctx context.Context, client gwclient.Client) (*gwclient.Result, error)
- func (cfg *Config) HandleSourcePkg(ctx context.Context, client gwclient.Client) (*gwclient.Result, error)
- func (cfg *Config) HandleWorker(ctx context.Context, client gwclient.Client) (*gwclient.Result, error)
- func (d *Config) InstallBuildDeps(sOpt dalec.SourceOpts, spec *dalec.Spec, targetKey string, ...) llb.StateOption
- func (d *Config) InstallTestDeps(sOpt dalec.SourceOpts, targetKey string, spec *dalec.Spec, ...) llb.StateOption
- func (cfg *Config) RepoMounts(repos []dalec.PackageRepositoryConfig, sOpt dalec.SourceOpts, ...) (llb.RunOption, error)
- func (cfg *Config) Worker(sOpt dalec.SourceOpts, opts ...llb.ConstraintsOpt) (llb.State, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AptInstall ¶
func AptInstall(packages []string, opts ...llb.ConstraintsOpt) llb.RunOption
AptInstall returns an llb.RunOption that uses apt to install the provided packages.
This returns an llb.RunOption but it does create some things internally, This is what the constraints opts are used for. The constraints are applied after any constraint set on the llb.ExecInfo
func InstallLocalPkg ¶
InstallLocalPkg installs all deb packages found in the root of the provided llb.State
In some cases, with strict version constraints in the package's dependencies, this will use `aptitude` to help resolve those dependencies since apt is currently unable to handle strict constraints.
This returns an llb.RunOption but it does create some things internally, This is what the constraints opts are used for. The constraints are applied after any constraint set on the llb.ExecInfo
Types ¶
type Config ¶
type Config struct { ImageRef string ContextRef string VersionID string AptCachePrefix string BuilderPackages []string RepoPlatformConfig *dalec.RepoPlatformConfig DefaultOutputImage string // ExtraRepos is used by distributions that want to enable extra repositories // that are not inthe base worker config. // A prime example of this is adding Debian backports on debian distrubutions. ExtraRepos []dalec.PackageRepositoryConfig }
func (*Config) BuildContainer ¶
func (*Config) BuildImageConfig ¶
func (*Config) HandleContainer ¶
func (*Config) HandleSourcePkg ¶
func (*Config) HandleWorker ¶
func (*Config) InstallBuildDeps ¶
func (d *Config) InstallBuildDeps(sOpt dalec.SourceOpts, spec *dalec.Spec, targetKey string, opts ...llb.ConstraintsOpt) llb.StateOption
func (*Config) InstallTestDeps ¶
func (d *Config) InstallTestDeps(sOpt dalec.SourceOpts, targetKey string, spec *dalec.Spec, opts ...llb.ConstraintsOpt) llb.StateOption
func (*Config) RepoMounts ¶
func (cfg *Config) RepoMounts(repos []dalec.PackageRepositoryConfig, sOpt dalec.SourceOpts, opts ...llb.ConstraintsOpt) (llb.RunOption, error)
func (*Config) Worker ¶
func (cfg *Config) Worker(sOpt dalec.SourceOpts, opts ...llb.ConstraintsOpt) (llb.State, error)