2020-07-30 09:44:01 +08:00
|
|
|
%global is_systemd 1
|
|
|
|
|
|
|
|
|
|
Name: isula-build
|
2021-11-29 10:50:42 +08:00
|
|
|
Version: 0.9.6
|
2022-06-15 15:42:51 +08:00
|
|
|
Release: 8
|
2020-07-30 09:44:01 +08:00
|
|
|
Summary: A tool to build container images
|
|
|
|
|
License: Mulan PSL V2
|
|
|
|
|
URL: https://gitee.com/openeuler/isula-build
|
2020-09-04 11:40:07 +08:00
|
|
|
Source0: https://gitee.com/openeuler/isula-build/repository/archive/v%{version}.tar.gz
|
2020-09-10 18:24:16 +08:00
|
|
|
Source1: git-commit
|
|
|
|
|
Source2: VERSION-openeuler
|
|
|
|
|
Source3: apply-patches
|
|
|
|
|
Source4: gen-version.sh
|
|
|
|
|
Source5: series.conf
|
|
|
|
|
Source6: patch.tar.gz
|
2020-07-30 09:44:01 +08:00
|
|
|
BuildRequires: make btrfs-progs-devel device-mapper-devel glib2-devel gpgme-devel
|
2021-02-09 16:46:51 +08:00
|
|
|
BuildRequires: libassuan-devel libseccomp-devel git bzip2 systemd-devel
|
2020-07-30 09:44:01 +08:00
|
|
|
BuildRequires: golang >= 1.13
|
|
|
|
|
%if 0%{?is_systemd}
|
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
|
Requires: systemd-units
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
isula-build is a tool used for container images building.
|
|
|
|
|
|
2020-11-27 17:31:40 +08:00
|
|
|
%debug_package
|
|
|
|
|
|
2020-07-30 09:44:01 +08:00
|
|
|
%prep
|
2020-09-10 18:24:16 +08:00
|
|
|
cp %{SOURCE0} .
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
cp %{SOURCE2} .
|
|
|
|
|
cp %{SOURCE3} .
|
|
|
|
|
cp %{SOURCE4} .
|
|
|
|
|
cp %{SOURCE5} .
|
|
|
|
|
cp %{SOURCE6} .
|
2020-07-30 09:44:01 +08:00
|
|
|
|
|
|
|
|
%build
|
2020-09-10 18:24:16 +08:00
|
|
|
sh ./apply-patches
|
2020-07-30 09:44:01 +08:00
|
|
|
%{make_build} safe
|
2020-09-01 21:00:21 +08:00
|
|
|
./bin/isula-build completion > __isula-build
|
2020-07-30 09:44:01 +08:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -d %{buildroot}%{_bindir}
|
|
|
|
|
# install binary
|
2020-11-19 19:41:41 +08:00
|
|
|
install -p ./bin/isula-build %{buildroot}%{_bindir}/isula-build
|
|
|
|
|
install -p ./bin/isula-builder %{buildroot}%{_bindir}/isula-builder
|
2020-07-30 09:44:01 +08:00
|
|
|
# install service
|
|
|
|
|
%if 0%{?is_systemd}
|
|
|
|
|
install -d %{buildroot}%{_unitdir}
|
2020-11-19 19:41:41 +08:00
|
|
|
install -p isula-build.service %{buildroot}%{_unitdir}/isula-build.service
|
2020-07-30 09:44:01 +08:00
|
|
|
%endif
|
|
|
|
|
# install config file
|
2020-11-19 19:41:41 +08:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/isula-build
|
|
|
|
|
install -p ./cmd/daemon/config/configuration.toml %{buildroot}%{_sysconfdir}/isula-build/configuration.toml
|
|
|
|
|
install -p ./cmd/daemon/config/storage.toml %{buildroot}%{_sysconfdir}/isula-build/storage.toml
|
|
|
|
|
install -p ./cmd/daemon/config/registries.toml %{buildroot}%{_sysconfdir}/isula-build/registries.toml
|
|
|
|
|
install -p ./cmd/daemon/config/policy.json %{buildroot}%{_sysconfdir}/isula-build/policy.json
|
2020-09-01 21:00:21 +08:00
|
|
|
# install bash completion script
|
|
|
|
|
install -d %{buildroot}/usr/share/bash-completion/completions
|
|
|
|
|
install -p -m 600 __isula-build %{buildroot}/usr/share/bash-completion/completions/isula-build
|
2020-07-30 09:44:01 +08:00
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
2021-10-14 10:18:55 +08:00
|
|
|
%pre
|
2020-11-06 17:32:23 +08:00
|
|
|
if ! getent group isula > /dev/null; then
|
|
|
|
|
groupadd --system isula
|
|
|
|
|
fi
|
|
|
|
|
|
2020-07-30 09:44:01 +08:00
|
|
|
%files
|
|
|
|
|
# default perm for files and folder
|
|
|
|
|
%defattr(0640,root,root,0550)
|
|
|
|
|
%if 0%{?is_systemd}
|
|
|
|
|
%config(noreplace) %attr(0640,root,root) %{_unitdir}/isula-build.service
|
|
|
|
|
%endif
|
2021-07-26 17:28:10 +08:00
|
|
|
%attr(550,root,isula) %{_bindir}/isula-build
|
2020-11-17 15:56:56 +08:00
|
|
|
%attr(550,root,root) %{_bindir}/isula-builder
|
2020-11-19 19:41:41 +08:00
|
|
|
|
|
|
|
|
%dir %attr(650,root,root) %{_sysconfdir}/isula-build
|
2020-07-30 09:44:01 +08:00
|
|
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/isula-build/configuration.toml
|
|
|
|
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/isula-build/storage.toml
|
|
|
|
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/isula-build/registries.toml
|
|
|
|
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/isula-build/policy.json
|
2020-09-01 21:00:21 +08:00
|
|
|
/usr/share/bash-completion/completions/isula-build
|
2020-07-30 09:44:01 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2022-06-15 15:42:51 +08:00
|
|
|
* Wed Jun 15 2022 xingweizheng <xingweizheng@huawei.com> - 0.9.6-8
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:sync upstream patches
|
|
|
|
|
|
2022-05-26 14:43:55 +08:00
|
|
|
* Thu May 26 2022 loong_C <loong_c@yeah.net> - 0.9.6-7
|
|
|
|
|
- fix spec changelog date
|
|
|
|
|
|
2022-03-16 11:25:03 +08:00
|
|
|
* Wed Mar 16 2022 xingweizheng <xingweizheng@huawei.com> - 0.9.6-6
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:disable go-selinux on openEuler
|
|
|
|
|
|
2022-01-13 16:57:54 +08:00
|
|
|
* Thu Jan 13 2022 DCCooper <1866858@gmail.com> - 0.9.6-5
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:add syscall "statx" in seccomp
|
|
|
|
|
|
2021-12-31 17:46:43 +08:00
|
|
|
* Fri Dec 31 2021 jingxiaolu <lujingxiao@huawei.com> - 0.9.6-4
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:refactor image separator related
|
|
|
|
|
|
2021-12-23 20:45:38 +08:00
|
|
|
* Thu Dec 23 2021 DCCooper <1866858@gmail.com> - 0.9.6-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:sync upstream patches
|
|
|
|
|
|
2021-12-08 16:55:36 +08:00
|
|
|
* Wed Dec 08 2021 DCCooper <1866858@gmail.com> - 0.9.6-2
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:sync upstream patch
|
|
|
|
|
|
2021-11-29 10:50:42 +08:00
|
|
|
* Mon Nov 29 2021 DCCooper <1866858@gmail.com> - 0.9.6-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:Bump version to 0.9.6
|
|
|
|
|
|
2021-11-17 22:22:54 +08:00
|
|
|
* Wed Nov 17 2021 jingxiaolu <lujingxiao@huawei.com> - 0.9.5-21
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:add repo to local image when output transporter is docker://
|
|
|
|
|
|
2021-11-10 10:16:22 +08:00
|
|
|
* Wed Nov 10 2021 DCCooper <1866858@gmail.com> - 0.9.5-20
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:add log info for layers processing
|
|
|
|
|
|
2021-11-04 16:53:15 +08:00
|
|
|
* Thu Nov 04 2021 DCCooper <1866858@gmail.com> - 0.9.5-19
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restat
|
|
|
|
|
- DESC:fix panic when using image ID to save separated image
|
|
|
|
|
|
2021-11-03 15:17:10 +08:00
|
|
|
* Wed Nov 03 2021 lixiang <lixiang172@huawei.com> - 0.9.5-18
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:fix loaded images cover existing images name and tag
|
|
|
|
|
|
2021-11-03 14:45:37 +08:00
|
|
|
* Wed Nov 03 2021 DCCooper <1866858@gmail.com> - 0.9.5-17
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:optimize function IsExist and add more testcase for filepath.go
|
|
|
|
|
|
2021-11-03 14:35:46 +08:00
|
|
|
* Wed Nov 03 2021 DCCooper <1866858@gmail.com> - 0.9.5-16
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:fix random sequence for saving separated image tarball
|
|
|
|
|
|
2021-11-02 12:40:19 +08:00
|
|
|
* Tue Nov 02 2021 lixiang <lixiang172@huawei.com> - 0.9.5-15
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:support save/load separated image, add relative test cases and bugfixes as well
|
|
|
|
|
|
2021-10-25 16:13:03 +08:00
|
|
|
* Mon Oct 25 2021 DCCooper <1866858@gmail.com> - 0.9.5-14
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:sync patches from upstream, including relocate export package, clean code for tests and golint
|
|
|
|
|
|
2021-10-14 10:18:55 +08:00
|
|
|
* Thu Oct 14 2021 DCCooper <1866858@gmail.com> - 0.9.5-13
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:use pre instead of pretrans for groupadd
|
|
|
|
|
|
2021-09-03 10:10:58 +08:00
|
|
|
* Fri Sep 03 2021 xingweizheng <xingweizheng@huawei.com> - 0.9.5-12
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:fix for save single image with multiple tags when id first
|
|
|
|
|
|
2021-08-31 10:54:46 +08:00
|
|
|
* Tue Aug 31 2021 jingxiaolu <lujingxiao@huawei.com> - 0.9.5-11
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:sync patches from upstream, including fix for save multiple tags, test cases improvement
|
|
|
|
|
|
2021-07-26 19:08:08 +08:00
|
|
|
* Mon Jul 26 2021 DCCooper <1866858@gmail.com> - 0.9.5-10
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:update documents about file mode
|
|
|
|
|
|
2021-07-26 17:28:10 +08:00
|
|
|
* Mon Jul 26 2021 DCCooper <1866858@gmail.com> - 0.9.5-9
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:modify file mode for isula-build client binary and public key
|
|
|
|
|
|
2021-06-16 14:41:17 +08:00
|
|
|
* Wed Jun 16 2021 DCCooper <1866858@gmail.com> - 0.9.5-8
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:sync patch from upstream
|
|
|
|
|
|
2021-06-02 14:45:19 +08:00
|
|
|
* Wed Jun 02 2021 DCCooper <1866858@gmail.com> - 0.9.5-7
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:sync patches from upstream
|
|
|
|
|
|
2021-03-03 19:29:30 +08:00
|
|
|
* Wed Mar 03 2021 lixiang <lixiang172@huawei.com> - 0.9.5-6
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:sync patches from upstream
|
|
|
|
|
|
2021-02-10 10:59:29 +08:00
|
|
|
* Wed Feb 10 2021 lixiang <lixiang172@huawei.com> - 0.9.5-5
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:remove empty lines when showing image list
|
|
|
|
|
|
2021-02-09 19:50:23 +08:00
|
|
|
* Tue Feb 09 2021 DCCooper <1866858@gmail.com> - 0.9.5-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:remove Healthcheck field when build from scratch
|
|
|
|
|
|
2021-02-09 16:46:51 +08:00
|
|
|
* Tue Feb 09 2021 DCCooper <1866858@gmail.com> - 0.9.5-3
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:remove go-md2man build require
|
|
|
|
|
|
2021-02-04 20:22:15 +08:00
|
|
|
* Thu Feb 4 2021 leizhongkai<leizhongkai@huawei.com> - 0.9.5-2
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:make `isula-build ctr-img images` display comfortably
|
|
|
|
|
|
2021-01-26 15:45:02 +08:00
|
|
|
* Tue Jan 26 2021 lixiang <lixiang172@huawei.com> - 0.9.5-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:Bump version to 0.9.5
|
|
|
|
|
|
2020-12-11 14:46:37 +08:00
|
|
|
* Fri Dec 11 2020 lixiang <lixiang172@huawei.com> - 0.9.4-14
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:Modify gen-version script and add changelog automatically
|
|
|
|
|
|
|
|
|
|
* Fri Dec 11 2020 lujingxiao <lujingxiao@huawei.com> - 0.9.4-13
|
2020-12-11 11:29:49 +08:00
|
|
|
- Change default umask of isula-builder process
|
|
|
|
|
|
2020-12-08 15:42:48 +08:00
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-12
|
|
|
|
|
- Fix printing FROM command double times to console
|
|
|
|
|
|
2020-12-08 15:41:07 +08:00
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-11
|
|
|
|
|
- Fix problems found by code review
|
|
|
|
|
|
|
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-10
|
2020-12-08 15:37:19 +08:00
|
|
|
- Add more fuzz tests
|
|
|
|
|
|
2020-12-08 15:41:07 +08:00
|
|
|
* Tue Dec 08 2020 caihaomin<caihaomin@huawei.com> - 0.9.4-9
|
2020-12-08 15:34:21 +08:00
|
|
|
- Imporve daemon push and pull unit test
|
|
|
|
|
|
2022-05-26 14:43:55 +08:00
|
|
|
* Fri Nov 27 2020 lixiang <lixiang172@huawei.com> - 0.9.4-8
|
2020-11-27 17:31:40 +08:00
|
|
|
- Add compile flag ftrapv and enable debuginfo
|
|
|
|
|
|
|
|
|
|
* Thu Nov 20 2020 xiadanni <xiadanni1@huawei.com> - 0.9.4-7
|
|
|
|
|
- Mask /proc/pin_memory
|
|
|
|
|
|
2020-11-19 19:41:41 +08:00
|
|
|
* Thu Nov 19 2020 lixiang <lixiang172@huawei.com> - 0.9.4-6
|
|
|
|
|
- Support build Dockerfile only have FROM command
|
|
|
|
|
|
2020-11-18 16:21:47 +08:00
|
|
|
* Wed Nov 18 2020 lixiang <lixiang172@huawei.com> - 0.9.4-5
|
|
|
|
|
- Delete patches no longer usefull
|
|
|
|
|
|
2020-11-17 15:56:56 +08:00
|
|
|
* Tue Nov 17 2020 lixiang <lixiang172@huawei.com> - 0.9.4-4
|
|
|
|
|
- Fix unsuitable filemode for isula-build(er)
|
|
|
|
|
|
2020-11-12 21:06:15 +08:00
|
|
|
* Thu Nov 12 2020 lixiang <lixiang172@huawei.com> - 0.9.4-3
|
|
|
|
|
- Chown config root path before daemon started
|
|
|
|
|
|
2020-11-10 15:05:20 +08:00
|
|
|
* Tue Nov 10 2020 lixiang <lixiang172@huawei.com> - 0.9.4-2
|
|
|
|
|
- Fix panic when user knock ctrl-c in pull/push/save command
|
|
|
|
|
|
2020-11-06 17:32:23 +08:00
|
|
|
* Fri Nov 06 2020 lixiang <lixiang172@huawei.com> - 0.9.4-1
|
|
|
|
|
- Bump version to 0.9.4
|
|
|
|
|
|
2020-09-19 15:28:16 +08:00
|
|
|
* Thu Sep 10 2020 lixiang <lixiang172@huawei.com> - 0.9.3-2
|
|
|
|
|
- Sync patch from upstream
|
|
|
|
|
|
2020-09-10 18:24:16 +08:00
|
|
|
* Thu Sep 10 2020 lixiang <lixiang172@huawei.com> - 0.9.3-1
|
|
|
|
|
- Bump version to 0.9.3
|
|
|
|
|
|
2020-09-04 11:40:07 +08:00
|
|
|
* Fri Sep 04 2020 lixiang <lixiang172@huawei.com> - 0.9.2-3
|
|
|
|
|
- Fix Source0 and do not startup after install by default
|
|
|
|
|
|
2020-09-01 21:00:21 +08:00
|
|
|
* Sat Aug 15 2020 lixiang <lixiang172@huawei.com> - 0.9.2-2
|
|
|
|
|
- Add bash completion script in rpm
|
|
|
|
|
|
|
|
|
|
* Wed Aug 12 2020 xiadanni <xiadanni1@huawei.com> - 0.9.2-1
|
|
|
|
|
- Bump version to 0.9.2
|
|
|
|
|
|
|
|
|
|
* Wed Aug 05 2020 xiadanni <xiadanni1@huawei.com> - 0.9.1-1
|
|
|
|
|
- Bump version to 0.9.1
|
|
|
|
|
|
2020-07-30 09:44:01 +08:00
|
|
|
* Sat Jul 25 2020 lixiang <lixiang172@huawei.com> - 0.9.0-1
|
|
|
|
|
- Package init
|