add spec and tar to v1.0.0 version
Signed-off-by: liyuanr <liyuanrong1@huawei.com>
This commit is contained in:
parent
c0aff5515e
commit
e0bdb89040
83
KubeOS.spec
Normal file
83
KubeOS.spec
Normal file
@ -0,0 +1,83 @@
|
||||
# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
|
||||
|
||||
Name: KubeOS
|
||||
Version: 1.0.0
|
||||
Release: 1
|
||||
Summary: O&M platform used to update the whole OS as an entirety
|
||||
License: Mulan PSL v2
|
||||
Source0: https://gitee.com/openeuler/isula-build/repository/archive/v%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: make
|
||||
BuildRequires: golang >= 1.13
|
||||
%description
|
||||
This is an O&M platform used to update the whole OS as an entirety,
|
||||
it should be running in kubernetes environment.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name} -p1
|
||||
|
||||
%package scripts
|
||||
Summary: Scripts to build the os image and binaries of os-proxy and os-operator
|
||||
Requires: qemu-img, parted, bc, tar, docker
|
||||
%description scripts
|
||||
The scripts package includes scripts which could build the os image and binaries of os-proxy and os-operator
|
||||
|
||||
%define debug_package %{nil}
|
||||
%define __debug_install_post \
|
||||
%{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}" \
|
||||
%{nil}
|
||||
|
||||
%build
|
||||
make
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_bindir}
|
||||
#install binary
|
||||
install -p -m 0500 ./bin/os-agent %{buildroot}%{_bindir}/os-agent
|
||||
install -d -m 0740 %{buildroot}/opt/kubeOS/bin
|
||||
install -p -m 0500 ./bin/proxy %{buildroot}/opt/kubeOS/bin
|
||||
install -p -m 0500 ./bin/operator %{buildroot}/opt/kubeOS/bin
|
||||
|
||||
#install artifacts
|
||||
install -d -m 0740 %{buildroot}/opt/kubeOS/scripts
|
||||
install -p -m 0600 ./scripts/rpmlist %{buildroot}/opt/kubeOS/scripts
|
||||
install -p -m 0500 ./scripts/generate.sh %{buildroot}/opt/kubeOS/scripts
|
||||
install -p -m 0500 ./scripts/set_in_chroot.sh %{buildroot}/opt/kubeOS/scripts
|
||||
install -p -m 0600 ./scripts/grub.cfg %{buildroot}/opt/kubeOS/scripts
|
||||
|
||||
install -d %{buildroot}%{_prefix}/lib/systemd/system
|
||||
install -p -m 0600 ./files/boot-grub2.mount %{buildroot}%{_prefix}/lib/systemd/system
|
||||
install -p -m 0600 ./files/etc.mount %{buildroot}%{_prefix}/lib/systemd/system
|
||||
install -p -m 0600 ./files/persist.mount %{buildroot}%{_prefix}/lib/systemd/system
|
||||
install -p -m 0600 ./files/var.mount %{buildroot}%{_prefix}/lib/systemd/system
|
||||
install -p -m 0600 ./files/os-agent.service %{buildroot}%{_prefix}/lib/systemd/system
|
||||
install -p -m 0600 ./files/os-release %{buildroot}%{_prefix}/lib
|
||||
|
||||
%files
|
||||
%attr(0500,root,root) %{_bindir}/os-agent
|
||||
%defattr(-,root,root,0500)
|
||||
%attr(0600,root,root) %{_prefix}/lib/systemd/system/boot-grub2.mount
|
||||
%attr(0600,root,root) %{_prefix}/lib/systemd/system/etc.mount
|
||||
%attr(0600,root,root) %{_prefix}/lib/systemd/system/persist.mount
|
||||
%attr(0600,root,root) %{_prefix}/lib/systemd/system/var.mount
|
||||
%attr(0600,root,root) %{_prefix}/lib/systemd/system/os-agent.service
|
||||
%attr(0600,root,root) %{_prefix}/lib/os-release
|
||||
|
||||
%files scripts
|
||||
%attr(0500,root,root) /opt/kubeOS/bin/proxy
|
||||
%attr(0500,root,root) /opt/kubeOS/bin/operator
|
||||
%defattr(-,root,root,0500)
|
||||
%attr(0600,root,root) /opt/kubeOS/scripts/rpmlist
|
||||
%attr(0500,root,root) /opt/kubeOS/scripts/generate.sh
|
||||
%attr(0500,root,root) /opt/kubeOS/scripts/set_in_chroot.sh
|
||||
%attr(0600,root,root) /opt/kubeOS/scripts/grub.cfg
|
||||
|
||||
%clean
|
||||
rm -rfv %{buildroot}
|
||||
|
||||
%changelog
|
||||
* Thu Sep 30 2021 liyuanrong<liyuanrong1@huawei.com> - 1.0.0-1
|
||||
- Type:requirement
|
||||
- CVE:NA
|
||||
- SUG:restart
|
||||
- DESC:First release KubeOS in rpm package
|
||||
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# KubeOS
|
||||
|
||||
#### Description
|
||||
Kubernetes Operating System simplifies OS updating
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 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](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# KubeOS
|
||||
|
||||
#### 介绍
|
||||
Kubernetes Operating System simplifies OS updating
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
BIN
v1.0.0.tar.gz
Normal file
BIN
v1.0.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user