Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1245145

Summary: [RFE] Documentation building Docker images from Sat6 ContentViews
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: DocumentationAssignee: Melanie Corr <mcorr>
Status: CLOSED NOTABUG QA Contact: Stephen Wadeley <swadeley>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.0CC: adahms, brubisch, peter.vreman, xdmoon
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-20 09:48:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 260381, 1122832    

Description Peter Vreman 2015-07-21 10:14:49 UTC
Document URL: 

Section Number and Name: 

Describe the issue: 

Suggestions for improvement: 

Additional information: 

Add guide how to use the Satellite 6 ContentViews to build consistent Docker images.
- Build Docker Image
- Add Docker Image to repository
- Provision Docker Image from repository (Foreman part)
- Errata Management on Docker Images
- Docker Images and Puppet runs
- Docker Images and Subscription usage (Subscription manager inside Docker images?)

Comment 1 RHEL Program Management 2015-07-21 10:24:19 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 2 Hayley Hudgeons 2015-07-21 17:17:42 UTC
Peter,

Thanks for the feedback/request. This will have to be evaluated in the next planning phase of the documentation and I will update this bug once I know when we can get this assigned. 

Regards,
Hayley Hudgeons

Comment 5 Andrew Dahms 2017-05-24 23:04:04 UTC
Resetting the QA contact.

Comment 6 Andrew Dahms 2017-11-29 05:18:33 UTC
Assigning to Melanie for review.

Melanie - this is another detailed bug in a similar vein to the one on building cloud images. I'm not sure at this stage if we need to go into as much detail on building the container images themselves if that is already covered elsewhere, but instructions on how to incorporate images into Satellite infrastructure as requested would be highly beneficial.

We already have some content on adding container compute resources and adding images, but a pointer to a reference on building images and some content on each of the other points from errata management onwards would be a great addition. This feels like it would be best positioned in the 'Managing Containers' section of the Managing Hosts guide.

Comment 7 Melanie Corr 2018-01-16 12:57:44 UTC
Hi Peter, 

Apologies for the delay in solving this bug. 

I have been going through the bug trying to understand what aspect you
would like covered.

I worked through the following guides from Red Hat Enterprise Linux [1][2], with success and could pull images into Docker containers and update them.

From a Satellite perspective, a Docker registry is handled with Content Views.

Satellite itself does not compose or create images, but you can store the Docker images in Content Views. You can then create or update images and publish a new Content View version if there are errata you need to apply.

From the RHEL documentation [1] I found that I could use yum update in a running container, and then save it as a new container image after the updates in a Satellite Content View.

We have a pre-existing section in the Satellite Content Management guide  about how to manage container images in Satellite[3]


There is a sub section that you might find particularly interesting:
10.3. Managing Container Images with Content Views

I will also include a link to provisioning containers in Satellite via Red Hat Atomic host set up as a compute resource[4]


Finally, is there another work flow you have in mind? If what I have outlined here is missing the point, please let me know, so that I can try to resolve this for you.

Thank you,

Melanie


[1]

https://access.redhat.com/documentation/en/openshift-container-platform/3.3/single/creating-images/

[2]

https://access.redhat.com/documentation/en/red-hat-enterprise-linux-atomic-host/7/single/getting-started-with-containers/

[3]

https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/content_management_guide/managing_container_images

[4]


https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/provisioning_guide/provisioning_containers

Comment 8 Peter Vreman 2018-01-17 18:18:45 UTC
Good documentattion sofar.

What I still miss is how to use an Existing Published ContentView with RPMs and Puppet modules to build a Docker image.

To use the content view of Sat6 in the image build process you need the entitlement etc.

It is related to Sat6 and Mock, but there one can cheat to use the entitlement from the host in the mock environment. Atricle https://access.redhat.com/blogs/1169563/posts/2191211

As i have no needs to build Containers in the foreseable future it is ok to close this BZ

Thanks
Peter