Skip to content

Commit

Permalink
README-development.md: Initial how to build info
Browse files Browse the repository at this point in the history
  • Loading branch information
ashcrow committed Jun 15, 2018
1 parent 52899fa commit 71e4b32
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README-development.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 71e4b32

Please sign in to comment.