Accepting request 899983 from home:ojkastl_buildservice:Branch_devel_kubic

new package docker-lock: Automatically manage image digests in Dockerfiles, docker-compose files, and Kubernetes manifests by tracking them in a separate Lockfile

OBS-URL: https://build.opensuse.org/request/show/899983
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/docker-lock?expand=0&rev=1
This commit is contained in:
Richard Brown 2021-06-17 07:50:27 +00:00 committed by Git OBS Bridge
commit 923f7d212d
7 changed files with 112 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

21
_service Normal file
View File

@ -0,0 +1,21 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/safe-waters/docker-lock</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v0.8.6</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="disabled">
<param name="basename">docker-lock</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="disabled">
<param name="archive">docker-lock-0.8.6.tar.gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/safe-waters/docker-lock</param>
<param name="changesrevision">78106aa46433fcff116dfa56e2536039676419bd</param></service></servicedata>

3
docker-lock-0.8.6.tar.gz Normal file
View File

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

4
docker-lock.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Jun 14 18:37:42 UTC 2021 - Johannes Kastl <kastl@b1-systems.de>
- first version of package docker-lock

54
docker-lock.spec Normal file
View File

@ -0,0 +1,54 @@
#
# spec file for package docker-lock
#
# 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/
#
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
Name: docker-lock
Version: 0.8.6
Release: 0
Summary: Automatically manage image digests in Dockerfiles, docker-compose files, and Kubernetes manifests
License: Apache-2.0
URL: https://github.com/safe-waters/docker-lock
Source: docker-lock-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go >= 1.13
%description
docker-lock is a cli tool that automates managing image digests by tracking them in a separate Lockfile (think package-lock.json or Pipfile.lock). With docker-lock, you can refer to images in Dockerfiles, docker-compose V3 files, and Kubernetes manifests by mutable tags (as in python:3.6) yet receive the same benefits as if you had specified immutable digests (as in python:3.6@sha256:25a189a536ae4d7c77dd5d0929da73057b85555d6b6f8a66bfbcc1a7a7de094b).
%prep
%setup -q
%setup -q -T -D -a 1
%build
mkdir out
go build \
-mod=vendor \
-ldflags="-X main.Version=%{version}" \
-o . ./...
%install
# Install the binary.
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%changelog

3
vendor.tar.gz Normal file
View File

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