From 18d0fdad4c861e1a61abff1a56c1ccd5a4f711cc Mon Sep 17 00:00:00 2001 From: Bala Raman Date: Mon, 21 Jun 2021 07:02:47 -0400 Subject: [PATCH] Update README.md, more changes to come Signed-off-by: Bala Raman --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 9508ae3..058038d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ # Kickstart to RootFS Builder This project provides the ability build `rootfs` file from `kickstart` input file in a docker/podman container environment. Output rootfs files can be used create base images for different OSs (AlmaLinux, Cent OS, Rocky Linux) etc. + +## HOW-TO + +Image yet ot published in `hub.docker.com`, until then use local build. +### Building local +``` +docker build -t srbala/ks2rootfs . +``` + +### Using Image + +Following command uses the `kickstarts/almalinux-8-default.x86_64.ks` file to build. + +``` +docker run --rm --privileged -v "$PWD:/build:z" \ + -e BUILD_KICKSTART=kickstarts/almalinux-8-default.x86_64.ks \ + -e BUILD_ROOTFS=almalinux-8-default-docker.x86_64.tar.gz \ + srbala/ks2rootfs +```