Skip to content

Commit

Permalink
azlinux: include prebuilt-ca-certificates in image
Browse files Browse the repository at this point in the history
Mistakenly thought this was part of the distroless minimal package but
its not.

This package includes the root CA's without any extra runtime
dependencies.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
  • Loading branch information
cpuguy83 committed Nov 8, 2024
1 parent 01d29a4 commit 47991be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/azlinux/azlinux3.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (w azlinux3) Install(pkgs []string, opts ...installOpt) llb.RunOption {
}

func (w azlinux3) BasePackages() []string {
return []string{"distroless-packages-minimal"}
return []string{"distroless-packages-minimal", "prebuilt-ca-certificates"}
}

func (azlinux3) DefaultImageConfig(ctx context.Context, resolver llb.ImageMetaResolver, platform *ocispecs.Platform) (*dalec.DockerImageSpec, error) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/azlinux/mariner2.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (w mariner2) Install(pkgs []string, opts ...installOpt) llb.RunOption {
}

func (w mariner2) BasePackages() []string {
return []string{"distroless-packages-minimal"}
return []string{"distroless-packages-minimal", "prebuilt-ca-certificates"}
}

func (mariner2) DefaultImageConfig(ctx context.Context, resolver llb.ImageMetaResolver, platform *ocispecs.Platform) (*dalec.DockerImageSpec, error) {
Expand Down

0 comments on commit 47991be

Please sign in to comment.