8 Star 10 Fork 2

anolis/KBuilder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.en.md 2.68 KB
一键复制 编辑 原始数据 按行查看 历史
wangchuanguo 提交于 1年前 . update README.en.md.

KBuilder

Description

Through the packaging and improvement of a variety of open source projects/tools, and the addition of some functions, to achieve a variety of common image custom packaging automation, simplify the use and operation steps, improve efficiency and correct rate, for Anolis and KOS users to provide common image types of production, packaging tools.

Supported image types: ISO, liveISO, qcow2, container, initrd can be used as ramfs.

Software Architecture

 ISO | liveISO | initrd | qcow2 | docker
------------------------------------------------
 pungi | lorax | anaconda | Self developed code
------------------------------------------------
    KOS yum repo    |   Anolis yum repo

Installation

  1. sh setup.sh

Instructions

  1. qcow2 set param in qcow2.conf;

sh create-qcow2.sh

  1. docker To create a default base image, you can use the following command:

sh create docker.sh

To create a base image and add two software packages, vim enhanced and dhcp server, you can use the following command:

sh create docker sh - p vim enhanced - p dhcp server

To create a base image and add group: file server, as well as Python 36 and Python 38, you can use the following command:

sh create docker.sh - g file server - g python36- g python38

  1. liveISO Configure modifiable parameters in livemedia.conf;

ADD_ PACKAGES can add RPM packages installed in Squashfs.img of live ISO ADD_ GROUPS can increase the RPM group installed in Squashfs.img of live ISO ADD_ FILES can add the specified file/folder to the specified location in Squashfs.img of live ISO, Location can be achieved through ADD_ FILES_ TARGET settings

Finally, execute

sh create-liveiso.sh

  1. initrd

Configure modifiable parameters in create-initrd-ramos-from-cur-os.conf: ADD_ DRIVERS can add kernel modules installed in initrd OMIT_ DRIVERS can exclude certain kernel modules from initrd INSTALL_ PROG can add user mode command tools installed in initrd INCLUDE_ FILE_ DIRECTORY * can add specified files/folders to initrd

Finally, execute

sh create-initrd-ramos-from-cur-os.sh

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/anolis/kbuilder.git
git@gitee.com:anolis/kbuilder.git
anolis
kbuilder
KBuilder
master

搜索帮助