-
Notifications
You must be signed in to change notification settings - Fork 108
Add package persistence for image mode hosts #4605
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
Merged
Lennonka
merged 6 commits into
theforeman:master
from
Lennonka:image-mode-transient-packages
Jan 28, 2026
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
31c09e2
Add package persistence for image mode hosts
Lennonka 09d871f
Drop note about future availability
Lennonka c6d6978
Improve concept
Lennonka 7c409c9
Rework Containerfile generation
Lennonka 8a02809
Fix hammer command
Lennonka d0665da
Apply suggestions from review
Lennonka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
8 changes: 8 additions & 0 deletions
8
guides/common/modules/con_persisting-transient-packages-in-your-image.adoc
This file contains hidden or 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,8 @@ | ||
| :_mod-docs-content-type: CONCEPT | ||
|
|
||
| [id="persisting-transient-packages-in-your-image"] | ||
| = Persisting transient packages in your image | ||
|
|
||
| [role="_abstract"] | ||
| You can generate a Containerfile command with transient packages to install the packages in your container image. | ||
Lennonka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Then, you can use this command to rebuild your image to make the packages persistent. | ||
17 changes: 17 additions & 0 deletions
17
guides/common/modules/proc_generating-a-containerfile-command-by-using-api.adoc
This file contains hidden or 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,17 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="generating-a-containerfile-command-by-using-api"] | ||
| = Generating a Containerfile command by using {Project} API | ||
Lennonka marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [role="_abstract"] | ||
| You can generate a Containerfile command by using {Project} API to persist transient packages in your container image. | ||
Lennonka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| .Prerequisites | ||
| * Your {Project} account has a role that grants the `view_hosts` permission. | ||
|
|
||
| .Procedure | ||
| . Send a `GET` request to the `/api/hosts/:host_id/transient_packages/containerfile_install_command` endpoint. | ||
| . Copy the generated command from the response. | ||
|
|
||
| .Next steps | ||
| * Include the generated command in your Containerfile and rebuild the image. | ||
22 changes: 22 additions & 0 deletions
22
guides/common/modules/proc_generating-a-containerfile-command-by-using-cli.adoc
This file contains hidden or 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,22 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="generating-a-containerfile-command-by-using-cli"] | ||
| = Generating a Containerfile command by using Hammer CLI | ||
Lennonka marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [role="_abstract"] | ||
| You can generate a Containerfile command by using Hammer CLI to persist transient packages in your container image. | ||
Lennonka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| .Prerequisites | ||
| * Your {Project} account has a role that grants the `view_hosts` permission. | ||
|
|
||
| .Procedure | ||
| . Generate the Containerfile command: | ||
Lennonka marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| + | ||
| [options="nowrap", subs="+quotes,attributes"] | ||
| ---- | ||
| $ hammer host package containerfile-install-command | ||
Lennonka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ---- | ||
| . Copy the generated command from the output. | ||
|
|
||
| .Next steps | ||
| * Include the generated command in your Containerfile and rebuild the image. | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.