dalec icon indicating copy to clipboard operation
dalec copied to clipboard

[REQ] Add build target to install packages from a provided build context

Open cpuguy83 opened this issue 4 months ago • 0 comments

What kind of request is this?

New feature

What is your request or suggestion?

It would be nice if we could have a build target that will install a package that's just provided from the build context directly into the distro image.

Example:

Given a directory layout:

RPMS
|_ foo_1.0.0-1.cm2.x86_64.rpm
|_ bar_1.0.0-1.cm2.x86_64.rpm

I would like to be able to tell dalec to build an image image from the packages provided.

$ docker build --build-arg BUILDKIT_SYNTAX=ghcr.io/azure/dalec/frontend:latest --target azlinux3/install ./RPMS

The above command is calling the azlinux3/install target with the contents of the ./RPMS directory as the build context. We can also support providing a dalec (even a partial one) so that you can customize the image just like a normal build does.

image:
  entrypoint: /usr/bin/foo

This would allow dalec to be used more like a component in a pipeline

Are you willing to submit PRs to contribute to this feature request?

  • [ ] Yes, I am willing to implement it.

cpuguy83 avatar Oct 08 '24 21:10 cpuguy83