Johannes Kastl 2025-01-23 06:13:02 +00:00 committed by Git OBS Bridge
commit 68bdbebd2d
27 changed files with 1420 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

20
_service Normal file
View File

@ -0,0 +1,20 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/chainguard-dev/apko</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v0.23.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="manual">
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="manual">
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/chainguard-dev/apko</param>
<param name="changesrevision">ec48e3070da9b4691b74de219fffd69d31da3f5d</param></service></servicedata>

3
apko-0.16.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d9cc7b005b2325a557ea39f8906815c33d68bc6720efbadcce43471f39e61621
size 2726924

3
apko-0.17.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:21a1cd19659aa40f0b3cddde9c9b6b8cda45e208d937700bdbdf9a9c42390a5f
size 2724876

3
apko-0.18.1.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:68f296e1be3c9951560b0439145b0f5883489aca803f1153139514557615b22a
size 2783756

3
apko-0.19.2.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ca0e45a17e3d848e82ca85d4da07faf5ce9004a1f12419e949ede5162d9f197
size 2780172

3
apko-0.19.4.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c49af0b7d6f551e5ad9001d03e1bad583b2fe8cea85cbdf5bf49e1782f995c0d
size 2796556

3
apko-0.19.6.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e01e15aa21d03c05f8d420cebfe0d13ae5b4c30b4d87f8b4feaa1561730bacf8
size 2796044

3
apko-0.19.7.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a2663b30b147335055ef40b603fd126895c3831d72f43e744b26876eadebf71
size 2798604

3
apko-0.19.8.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a514846ab1baa90e203d66e289c8e470603aa1cdb3518f51399f95fe5a705ce7
size 2799116

3
apko-0.19.9.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bea4724e8a4ffed62f5961fe05601115103a45832f759b6002a7a0762e59cfde
size 2799628

3
apko-0.20.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c8b721aa24f92c48877f924a26bded47857a0b61adf45528d8f866143098848b
size 2801676

3
apko-0.20.1.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc8f0d5309a966cdec178dd8f9c6fe6366605e17d4e06ce1d2632b90eac5dcff
size 2801676

3
apko-0.20.2.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8e18110fdc832f66090e93af993395f3716d242fdb8a37d6f9e05ed4b169fb35
size 2800652

3
apko-0.21.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ffd273c5ddacb24b389556277f452a59c7e28f8718c01a1cd60013ed5372466
size 2803724

3
apko-0.22.3.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce4e1a07c48a06c63eee8ec15c1b14e079e85968781091d5897574fa805c37a3
size 2808844

3
apko-0.22.4.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:21da78f3b506c20ed4f37b3936faee9087180e006228b0fd7ace08cb8b1911ae
size 2809356

3
apko-0.22.5.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f0fdc9fefe87374d6a87e528863ee34f66bd5b9fd9c419b61820170eae67ecc0
size 2807820

3
apko-0.22.6.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:566092aee3d8de21befe114cacf2c1f06536855f8f77adf7953d7542d036eeca
size 2809356

3
apko-0.22.7.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2992177b63428c3a5648106ecb4b3d444391fe0fef3c792a1dd76f7156a69e16
size 2810380

3
apko-0.23.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a7ff02be77dd4a13f76285da39ec31c2f9bf3cb49510d2d888713f3a730ddb6d
size 2820108

1184
apko.changes Normal file

File diff suppressed because it is too large Load Diff

4
apko.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: apko
version: 0.23.0
mtime: 1737586939
commit: ec48e3070da9b4691b74de219fffd69d31da3f5d

124
apko.spec Normal file
View File

@ -0,0 +1,124 @@
#
# spec file for package apko
#
# Copyright (c) 2025 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: apko
Version: 0.23.0
Release: 0
Summary: Build OCI images from APK packages directly without Dockerfile
License: Apache-2.0
URL: https://github.com/chainguard-dev/apko
Source: apko-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: bash-completion
BuildRequires: fish
BuildRequires: go >= 1.23
BuildRequires: zsh
%description
Build and publish OCI container images built from apk packages.
apko has the following key features:
- Fully reproducible by default. Run apko twice and you will get exactly the
same binary.
- Fast. apko aims to build images in ms.
- Small. apko generated images only contain what's needed by the application,
in the style of distroless.
- SBOM Support. apko produces a Software Bill of Materials (SBOM) for images,
detailing all the packages inside.
- Services. apko supports using the s6 supervision suite to run multiple
processes in a container without reaping or signalling issues.
Please note that apko is a work in progress and details are subject to change!
%package -n %{name}-bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description -n %{name}-bash-completion
Bash command line completion support for %{name}.
%package -n %{name}-fish-completion
Summary: Fish Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and fish)
BuildArch: noarch
%description -n %{name}-fish-completion
Fish command line completion support for %{name}.
%package -n %{name}-zsh-completion
Summary: Zsh Completion for %{name}
Group: System/Shells
Requires: %{name} = %{version}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description -n %{name}-zsh-completion
zsh command line completion support for %{name}.
%prep
%autosetup -p 1 -a 1
%build
DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ"
BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u "${DATE_FMT}")
go build \
-mod=vendor \
-buildmode=pie \
-ldflags="-X sigs.k8s.io/release-utils/version.gitVersion=%{version} \
-X sigs.k8s.io/release-utils/version.gitCommit=v%{version} \
-X sigs.k8s.io/release-utils/version.gitTreeState=clean \
-X sigs.k8s.io/release-utils/version.buildDate=$BUILD_DATE" \
-o bin/apko ./
%install
# Install the binary.
install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}
# create the bash completion file
mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/
%{buildroot}/%{_bindir}/%{name} completion bash > %{buildroot}%{_datarootdir}/bash-completion/completions/%{name}
# create the fish completion file
mkdir -p %{buildroot}%{_datarootdir}/fish/vendor_completions.d/
%{buildroot}/%{_bindir}/%{name} completion fish > %{buildroot}%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
# create the zsh completion file
mkdir -p %{buildroot}%{_datarootdir}/zsh/site-functions/
%{buildroot}/%{_bindir}/%{name} completion zsh > %{buildroot}%{_datarootdir}/zsh/site-functions/_%{name}
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%files -n %{name}-bash-completion
%{_datarootdir}/bash-completion/completions/%{name}
%files -n %{name}-fish-completion
%{_datarootdir}/fish/vendor_completions.d/%{name}.fish
%files -n %{name}-zsh-completion
%{_datarootdir}/zsh/site-functions/_%{name}
%changelog

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae8024feb211a8b510e6729f87f069549e28fabbc71d23efd9e102db43927bd2
size 8739273