commit a60d882ea864ff96410360c008443fa8f5ad69f65992f1e7cdd36ec0ecb73112 Author: Adrian Schröter Date: Fri May 3 11:48:56 2024 +0200 Sync from SUSE:SLFO:Main container-build-checks revision cfbdbebd670e64fc5c7833168be6262e 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/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..03f32c1 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/openSUSE/container-build-checks.git + 5ce6d2ffdcc3a95bc79b69d8d021c0b0bce41ad7 \ No newline at end of file diff --git a/container-build-checks-1682595397.5ce6d2f.obscpio b/container-build-checks-1682595397.5ce6d2f.obscpio new file mode 100644 index 0000000..b1a916b --- /dev/null +++ b/container-build-checks-1682595397.5ce6d2f.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ed314e7b36666618b60ce8daecb8eeaafe97083d99ca4075504a663577e8de8 +size 70667 diff --git a/container-build-checks.changes b/container-build-checks.changes new file mode 100644 index 0000000..a526eab --- /dev/null +++ b/container-build-checks.changes @@ -0,0 +1,79 @@ +------------------------------------------------------------------- +Fri Apr 28 09:23:53 UTC 2023 - Fabian Vogt + +- Update to version 1682595397.5ce6d2f: + * Handle OCI style images as well + * Makefile: Add missing dependency of broken-derived on proper-base + * GitHub workflow: Update action versions + * GitHub workflow: Test python 3.6 and 3.10 + +------------------------------------------------------------------- +Mon Aug 8 11:37:19 UTC 2022 - Fabian Vogt + +- Make the URL point to GitHub + +------------------------------------------------------------------- +Thu Jul 7 13:42:05 UTC 2022 - Fabian Vogt + +- openSUSE.conf: Allow bci/* as prefix + +------------------------------------------------------------------- +Wed Apr 20 14:26:26 UTC 2022 - Fabian Vogt + +- Update to version 1650464301.a198cf9: + * Detect and treat local builds specially + +------------------------------------------------------------------- +Mon Mar 7 09:23:46 UTC 2022 - Silvio Moioli + +- Adding Uyuni prefix for https://www.uyuni-project.org/ + +------------------------------------------------------------------- +Thu Feb 03 07:44:23 UTC 2022 - fvogt@suse.com + +- Update to version 1643874076.3d0e13c: + * Avoid crash on local builds + +------------------------------------------------------------------- +Tue Dec 14 13:49:12 UTC 2021 - fvogt@suse.com + +- Update to version 1639489705.a4c5a3ab2a75: + * Don't error out when the release field is empty + * Add simple gitpod configuration + +------------------------------------------------------------------- +Tue Jun 1 09:06:12 UTC 2021 - Fabian Vogt + +- Drop obsolete Requires: grep jq + +------------------------------------------------------------------- +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..a1aeff8 --- /dev/null +++ b/container-build-checks.obsinfo @@ -0,0 +1,4 @@ +name: container-build-checks +version: 1682595397.5ce6d2f +mtime: 1682595397 +commit: 5ce6d2ffdcc3a95bc79b69d8d021c0b0bce41ad7 diff --git a/container-build-checks.spec b/container-build-checks.spec new file mode 100644 index 0000000..2dd7111 --- /dev/null +++ b/container-build-checks.spec @@ -0,0 +1,94 @@ +# +# spec file for package container-build-checks +# +# Copyright (c) 2023 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: 1682595397.5ce6d2f +Release: 0 +Summary: Scripts to validate built container images +License: GPL-2.0-or-later +Group: Development/Tools/Building +URL: https://github.com/openSUSE/container-build-checks +Source0: %{name}-%{version}.tar.xz +Source1: openSUSE.conf +Source2: SUSE.conf +Requires: %{name}-vendor +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..cacc470 --- /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/*,uyuni/*,bci/* +# Those are images, not available as namespaces +Blocked+=opensuse/tumbleweed/*,opensuse/leap/*