Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/cli/build-cpio.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func buildCPIO() *cobra.Command {
var extraRepos []string
var extraPackages []string
var sizeLimits options.SizeLimits
var lockfile string

cmd := &cobra.Command{
Use: "build-cpio",
Expand All @@ -59,6 +60,7 @@ func buildCPIO() *cobra.Command {
build.WithSBOM(sbomPath),
build.WithArch(types.ParseArchitecture(buildArch)),
build.WithSizeLimits(sizeLimits),
build.WithLockFile(lockfile),
)
},
}
Expand All @@ -71,6 +73,7 @@ func buildCPIO() *cobra.Command {
cmd.Flags().StringSliceVarP(&extraRepos, "repository-append", "r", []string{}, "path to extra repositories to include")
cmd.Flags().StringSliceVarP(&extraPackages, "package-append", "p", []string{}, "extra packages to include")
addClientLimitFlags(cmd, &sizeLimits)
cmd.Flags().StringVar(&lockfile, "lockfile", "", "a path to .lock.json file (e.g. produced by apko lock) that constraints versions of packages to the listed ones (default '' means no additional constraints)")

return cmd
}
Expand Down
3 changes: 3 additions & 0 deletions internal/cli/build-minirootfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func buildMinirootFS() *cobra.Command {
var extraRepos []string
var extraPackages []string
var sizeLimits options.SizeLimits
var lockfile string

cmd := &cobra.Command{
Use: "build-minirootfs",
Expand All @@ -60,6 +61,7 @@ func buildMinirootFS() *cobra.Command {
build.WithArch(types.ParseArchitecture(buildArch)),
build.WithIgnoreSignatures(ignoreSignatures),
build.WithSizeLimits(sizeLimits),
build.WithLockFile(lockfile),
)
},
}
Expand All @@ -73,6 +75,7 @@ func buildMinirootFS() *cobra.Command {
cmd.Flags().StringSliceVarP(&extraRepos, "repository-append", "r", []string{}, "path to extra repositories to include")
cmd.Flags().StringSliceVarP(&extraPackages, "package-append", "p", []string{}, "extra packages to include")
addClientLimitFlags(cmd, &sizeLimits)
cmd.Flags().StringVar(&lockfile, "lockfile", "", "a path to .lock.json file (e.g. produced by apko lock) that constraints versions of packages to the listed ones (default '' means no additional constraints)")

return cmd
}
Expand Down