From 360999929d361c5ba8417ee9e9eb25de29671c7f Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 4 Sep 2015 03:17:00 -0700 Subject: Add support to the base image for RHEL Add support to the base image for running RHEL containers. Document how to register a system with RHN in image-buliding.rst. Change-Id: Id69c114cf734a8242066b8d7d05ba19c07af036a Partially-Implements: blueprint rhel-based-image-support --- doc/image-building.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'doc') diff --git a/doc/image-building.rst b/doc/image-building.rst index c118fef99..364c22e73 100644 --- a/doc/image-building.rst +++ b/doc/image-building.rst @@ -84,3 +84,20 @@ Now the source type support ``url`` and ``git``. The ``build.ini`` looks like: type = git location = https://github.com/openstack/keystone reference = stable/kilo + +To build RHEL containers, it is necessary to use the -i (include header) +feature to include registration with RHN of the container runtime operating +system. To obtain a RHN username/password/pool id, contact Red Hat. + +First create a file called rhel-include: + +:: + + RUN subscription-manager register --user= --password= \ + && subscription-manager attach --pool + +Then build RHEL containers: + +:: + + build -b rhel -i ./rhel-include -- cgit v1.2.3