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

Define task pipeline #46

Open
cmhe opened this issue Mar 13, 2019 · 0 comments
Open

Define task pipeline #46

cmhe opened this issue Mar 13, 2019 · 0 comments

Comments

@cmhe
Copy link
Contributor

cmhe commented Mar 13, 2019

Currently we don't have a clearly define pipeline of the tasks, especially for image recipes. This makes it difficult to introduce new tasks that should be run at certain points of the build process.

For image recipes I would like to propose the following pipeline:

  1. do_rootfs a (virtual) task after which the rootfs directory contains the desired root file system with all packages installed, etc.
  2. do_rootfs_postprocess a (virtual) task after which all post processing steps that can not be defined in a package are done.
  3. do_image a virtual task after which the images are created in the work directory of the image.
  4. do_deploy a (virtual) task after which the output artifacts of the recipe are deployed to the deploy directory.
  5. do_build a virtual task that defines the default build process.

This way it should be simpler to order custom and currently implemented task better into the structure.
No more lines like these

addtask ubi_image before do_build after do_copy_boot_files do_install_imager_deps do_unpack do_transform_template

but instead

addtask ubi_image before do_image after do_rootfs_postprocess

I have not looked into optimizing the package build pipeline and other recipe types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant