commit 965201c094849979fa1968dbf9cc3d66933c40e4a75c2efa9cfecfb09316c635 Author: Fabian Vogt Date: Mon Aug 12 11:40:32 2024 +0000 - Update to version 1723452932.412e7f6: * add test for missing substitutions * Reject labels that are missing a substitution OBS-URL: https://build.opensuse.org/package/show/devel:microos/container-build-checks?expand=0&rev=11 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..1baee9f --- /dev/null +++ b/SUSE.conf @@ -0,0 +1,4 @@ +[General] +Vendor=com.suse +Registry=registry.suse.com +Registry+=dp.apps.rancher.io diff --git a/_service b/_service new file mode 100644 index 0000000..870e643 --- /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..59dc5f3 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/openSUSE/container-build-checks.git + 412e7f60c08221a549b0f00dfcc4bee7694193ab \ 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-1721653643.19092fe.obscpio b/container-build-checks-1721653643.19092fe.obscpio new file mode 100644 index 0000000..f5716c1 --- /dev/null +++ b/container-build-checks-1721653643.19092fe.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92b52584fd859f21a6bb04395a0e290e7e595670505f7c72e6c22f37befc086c +size 70667 diff --git a/container-build-checks-1723452932.412e7f6.obscpio b/container-build-checks-1723452932.412e7f6.obscpio new file mode 100644 index 0000000..d6f6a75 --- /dev/null +++ b/container-build-checks-1723452932.412e7f6.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06b3bd5a2bc4797a8ec98e9c4d755cfc9545a6a66fd16decc70aa61dac566eb4 +size 75275 diff --git a/container-build-checks.changes b/container-build-checks.changes new file mode 100644 index 0000000..e2211d6 --- /dev/null +++ b/container-build-checks.changes @@ -0,0 +1,101 @@ +------------------------------------------------------------------- +Mon Aug 12 11:33:57 UTC 2024 - Fabian Vogt + +- Update to version 1723452932.412e7f6: + * add test for missing substitutions + * Reject labels that are missing a substitution + +------------------------------------------------------------------- +Mon Jul 22 13:43:57 UTC 2024 - Dirk Müller + +- update SUSE.conf: allow dp.rancher.apps.io + +------------------------------------------------------------------- +Mon Jul 22 13:08:23 UTC 2024 - Fabian Vogt + +- Switch _service to mode="manual" +- Update to version 1721653643.19092fe: + * Use generic name for the python setup step + * Allow specifying more than one registry + * Use Pathlib for resolving containerinfo + * Switch to test Python 3.11 + +------------------------------------------------------------------- +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..3411416 --- /dev/null +++ b/container-build-checks.obsinfo @@ -0,0 +1,4 @@ +name: container-build-checks +version: 1723452932.412e7f6 +mtime: 1723452932 +commit: 412e7f60c08221a549b0f00dfcc4bee7694193ab diff --git a/container-build-checks.spec b/container-build-checks.spec new file mode 100644 index 0000000..ef2a2a8 --- /dev/null +++ b/container-build-checks.spec @@ -0,0 +1,94 @@ +# +# spec file for package container-build-checks +# +# Copyright (c) 2024 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: 1723452932.412e7f6 +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/*