Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
cpuguy83 opened this issue Oct 8, 2024 · 0 comments
Open
1 task
Labels
enhancement New feature or request

Comments

@cpuguy83
Copy link
Member

cpuguy83 commented Oct 8, 2024

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 cpuguy83 added the enhancement New feature or request label Oct 8, 2024
@cpuguy83 cpuguy83 added this to the v0.11.0 milestone Oct 9, 2024
@cpuguy83 cpuguy83 removed this from the v0.11.0 milestone Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant