forked from cekit/cekit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert changes for module processing order.
Fix handling of package managers in included repositories. Improve documentation. Revert "Install modules (including executions) *after* packages are installed, not before." This reverts commit e9410af.
- Loading branch information
Showing
8 changed files
with
176 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
Image Descriptor and Modules | ||
========================= | ||
|
||
.. contents:: | ||
:backlinks: none | ||
|
||
.. note:: | ||
This chapter applies to :doc:`builder engines </handbook/building/builder-engines>` that use Dockerfile as the input. | ||
|
||
|
||
While :doc:`module processing </handbook/modules/merging>` chapter covered the template processing modules this section | ||
describes how the image processing interacts with the module processing. | ||
|
||
|
||
.. graphviz:: | ||
:align: center | ||
:alt: Module installation | ||
:name: module-installation-diagram | ||
|
||
digraph module_installation { | ||
graph [fontsize="11", fontname="Open Sans", compound="true", splines=ortho, nodesep=0.5, ranksep=0.75]; | ||
node [shape="box", fontname="Open Sans", fontsize="10"]; | ||
|
||
// main rendering | ||
subgraph cluster_0 { | ||
label="Main Rendering Generation"; | ||
builder [label="Builder image handling"]; | ||
from [label="FROM generation"]; | ||
extra [label="Extra directory copying"]; | ||
image [label="Image Processing"]; | ||
cleanup [label="Cleanup"]; | ||
final [label="Final stages", href="#final-stages"]; | ||
} | ||
|
||
// process_image | ||
subgraph cluster_1 { | ||
label="Image Rendering"; | ||
cachito [label="Cachito Support", rank=same]; | ||
repo [label="Repository Management"]; | ||
module [label="Included Module Processing"]; | ||
complete_image [label="Final Image stages", href="#final-image-stages"]; | ||
} | ||
|
||
// process_module | ||
subgraph cluster_2 { | ||
artifact [label="Artifact copying", rank=same]; | ||
pkg_install [label="Package installation"]; | ||
ports [label="Expose Ports"]; | ||
run [label="Run scripts"]; | ||
volumes [label="Configure volumes"]; | ||
} | ||
|
||
// graph control | ||
builder -> from -> extra -> image -> cleanup -> final; | ||
cachito -> repo -> module -> complete_image; | ||
artifact -> pkg_install -> ports -> run -> volumes; | ||
|
||
// subgraph links | ||
builder -> cachito[constraint=false]; | ||
image -> cachito[constraint=false]; | ||
module -> artifact[constraint=false]; | ||
complete_image -> artifact[constraint=false]; | ||
} | ||
|
||
|
||
Final Stages | ||
""""""""""""""""""""""" | ||
|
||
This encompasses defining the ``USER``, the ``WORKDIR``, and ``ENTRYPOINT``. Finally the ``RUN`` command is generated. | ||
|
||
Final Image Stages | ||
""""""""""""""""""""""" | ||
|
||
This encompasses the final part of the generation for the image descriptor which may include e.g. package installation. | ||
Note that this happens **after** modules have been included and processed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ to succeed with CEKit. | |
|
||
merging | ||
versioning | ||
image_order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters