From 71e4b3285e195eb7cc45e4672b9f87cc320ffeeb Mon Sep 17 00:00:00 2001 From: Steve Milner Date: Fri, 15 Jun 2018 09:49:03 -0400 Subject: [PATCH] README-development.md: Initial how to build info --- README-development.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/README-development.md b/README-development.md index 3b5dde4aa..f8ce3b2a9 100644 --- a/README-development.md +++ b/README-development.md @@ -1,3 +1,39 @@ +# Operating System + +## Prerequisites + +- git +- coreos-assembler +- rpmdistro-gitoverlay +- ostree +- rpm-ostree +- imagefactory-plugins-TinMan +- qemu-img + + +## Building + +- Clone ``openshift/os`` +- Move into the cloned repo +- Build packages from source repos: + - ``rpmdistro-gitoverlay init`` + - ``rpmdistro-gitoverlay resolve --fetch-all`` + - ``rpmdistro-gitoverlay build`` +- Make the ostree + - ``export REPO=/tmp/repo`` + - ``ostree init --repo=$REPO --mode=archive --src $REPO/ --dest=$REPO`` + - ``coreos-assembler --repo=$REPO host.yaml`` + - ``ostree summary --repo=$REPO --update --dest $REPO/ --src=$REPO`` +- Make the qcow2 + - ``ostree --repo=repo remote add rhcos --no-gpg-verify ${OSTREE_INSTALL_URL}`` + - ``ostree --repo=repo pull --mirror --commit-metadata-only rhcos`` + - ``imagefactory --debug base_image --file-parameter install_script cloud.ks --parameter offline_icicle True rhcos.tdl`` + - ``export IMAGE=`ls /var/lib/imagefactory/storage/*.body``` + - ``qemu-img convert -f raw -O qcow2 $IMAGE rhcos-devel.qcow2`` + + +# Container Image + This repository uses [https://docs.docker.com/develop/develop-images/multistage-build/](multi-stage) builds. If you're using Project Atomic/RHEL Docker, your best bet is to build [OpenShift imagebuilder](https://github.com/openshift/imagebuilder) docker.