commit fa6cb1a0f3a6dc21db3a7fefa65f2b6d2439044830274de3647e3076f64b2678 Author: Dominique Leuenberger Date: Mon Jun 14 21:10:44 2021 +0000 Accepting request 896606 from devel:kubic OBS-URL: https://build.opensuse.org/request/show/896606 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/container-build-checks?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/SUSE.conf b/SUSE.conf new file mode 100644 index 0000000..0589140 --- /dev/null +++ b/SUSE.conf @@ -0,0 +1,3 @@ +[General] +Vendor=com.suse +Registry=registry.suse.com diff --git a/_service b/_service new file mode 100644 index 0000000..03c3328 --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + https://github.com/openSUSE/container-build-checks.git + git + enable + + + + + *.tar + xz + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..71e7422 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/openSUSE/container-build-checks.git + 4616f4f91f8fe7589e80e8ec2df0ae1aaff4c132 \ No newline at end of file diff --git a/container-build-checks-1622209785.4616f4f.obscpio b/container-build-checks-1622209785.4616f4f.obscpio new file mode 100644 index 0000000..cceea94 --- /dev/null +++ b/container-build-checks-1622209785.4616f4f.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:690d9ecc22c18bc0fcfae7e11d626050dd245bc9fb29c1908f8720f1c02189d2 +size 54796 diff --git a/container-build-checks.changes b/container-build-checks.changes new file mode 100644 index 0000000..debd786 --- /dev/null +++ b/container-build-checks.changes @@ -0,0 +1,31 @@ +------------------------------------------------------------------- +Fri May 28 13:57:34 UTC 2021 - Fabian Vogt + +- Update to version 1622209785.4616f4f: + * README.md: Point badge to new location + +------------------------------------------------------------------- +Fri May 28 12:47:42 UTC 2021 - Fabian Vogt + +- Update to version 1622204213.c8ecb9f: + * Add options to allow and block specific tags + +------------------------------------------------------------------- +Thu May 27 15:09:59 UTC 2021 - Fabian Vogt + +- Update to version 1622127842.b548dd8: + * Update README.md + * Add README.md + * Add broken-derived test + * Verify prefix of the image specific label prefix + * Add some comments in the Makefile + * Always check the tag used in org.opensuse.reference + * Add github workflow + * Use bash explicitly + * Make lint + * Less noise in Makefile + +------------------------------------------------------------------- +Fri Apr 30 10:04:09 UTC 2021 - Fabian Vogt + +- Initial commit diff --git a/container-build-checks.obsinfo b/container-build-checks.obsinfo new file mode 100644 index 0000000..17d3c59 --- /dev/null +++ b/container-build-checks.obsinfo @@ -0,0 +1,5 @@ +name: container-build-checks +version: 1622209785.4616f4f +mtime: 1622209785 +commit: 4616f4f91f8fe7589e80e8ec2df0ae1aaff4c132 + diff --git a/container-build-checks.spec b/container-build-checks.spec new file mode 100644 index 0000000..9979420 --- /dev/null +++ b/container-build-checks.spec @@ -0,0 +1,96 @@ +# +# spec file for package container-build-checks +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: container-build-checks +Version: 1622209785.4616f4f +Release: 0 +Summary: Scripts to validate built container images +License: GPL-2.0-or-later +Group: Development/Tools/Building +URL: https://build.opensuse.org +Source0: %{name}-%{version}.tar.xz +Source1: openSUSE.conf +Source2: SUSE.conf +Requires: %{name}-vendor +Requires: gawk +Requires: jq +BuildArch: noarch + +%package vendor-openSUSE +Summary: openSUSE configuration for %{name} +Group: Development/Tools/Building +Requires: %{name} = %{version} +Provides: %{name}-vendor +Conflicts: %{name}-vendor + +%description vendor-openSUSE +openSUSE configuration for %{name} + +%package vendor-SUSE +Summary: SUSE configuration for %{name} +Group: Development/Tools/Building +Requires: %{name} = %{version} +Provides: %{name}-vendor +Conflicts: %{name}-vendor + +%description vendor-SUSE +SUSE configuration for %{name} + +%package strict +Summary: Strict configuration for %{name} +Group: Development/Tools/Building + +%description strict +Strict configuration for %{name} + +%description +This tool checks that built container images conform to the openSUSE container +image policies (https://en.opensuse.org/Building_derived_containers). + +%prep +%autosetup -p1 + +%build +%make_build + +%install +%make_install + +mkdir -p %{buildroot}%{_datadir}/container-build-checks/ +install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/container-build-checks/openSUSE.conf +install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/container-build-checks/SUSE.conf +echo -e "[General]\nFatalWarnings=true" > %{buildroot}%{_datadir}/container-build-checks/strict.conf + +%files +#%doc README +%license LICENSE +%dir %{_datadir}/container-build-checks +%dir %{_prefix}/lib/build/ +%dir %{_prefix}/lib/build/post-build-checks/ +%{_prefix}/lib/build/post-build-checks/container-build-checks + +%files vendor-openSUSE +%{_datadir}/container-build-checks/openSUSE.conf + +%files vendor-SUSE +%{_datadir}/container-build-checks/SUSE.conf + +%files strict +%{_datadir}/container-build-checks/strict.conf + +%changelog diff --git a/openSUSE.conf b/openSUSE.conf new file mode 100644 index 0000000..e573187 --- /dev/null +++ b/openSUSE.conf @@ -0,0 +1,10 @@ +[General] +Vendor=org.opensuse +Registry=registry.opensuse.org + +[Tags] +# To avoid conflicts with other stuff on the registry and +# avoid ambiguities with images on other registries. +Allowed+=opensuse/*,kubic/*,kubevirt/* +# Those are images, not available as namespaces +Blocked+=opensuse/tumbleweed/*,opensuse/leap/*