c0b66ee538
* Support Unix Domain Sockets (#328) * Remove httpdown (#325) * bugfix: Added sign-in link under gitlab page template (#323) * Update helm to v1.8.0 of auth_server (#321) * Added OpenID Connect support (#307) * feat: Added Gitlab Authentication method (#319) * update to golang 1.17 * Fix regexp parsing IPv6 without port indication in remote_addr (#318) * Updated mongodb driver (#316) * Add codeql scanning (#314) * Update README.md (#312) OBS-URL: https://build.opensuse.org/package/show/devel:kubic/docker_auth?expand=0&rev=10
57 lines
1.7 KiB
RPMSpec
57 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package docker_auth
|
|
#
|
|
# 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: docker_auth
|
|
Version: 1.9.0+git20211128.636c09a
|
|
Release: 0
|
|
Summary: Authenticaton for container registry with tokens
|
|
License: Apache-2.0
|
|
URL: https://github.com/cesanta/docker_auth
|
|
Source: docker_auth-%{version}.tar.xz
|
|
BuildRequires: golang(API) >= 1.16
|
|
%ifarch %arm aarch64
|
|
BuildRequires: binutils-gold
|
|
%endif
|
|
|
|
%description
|
|
This package contains a tool to authenticate the access to
|
|
a container registry. Access is granted defined by an access
|
|
control list for every user.
|
|
|
|
%prep
|
|
%setup -q
|
|
rm chart/docker-auth/.helmignore
|
|
chmod 644 chart/docker-auth/templates/*.*
|
|
|
|
%build
|
|
cd auth_server
|
|
# Make the go command working in OBS and on all architectures:
|
|
sed -i -e 's|CGO_ENABLED=0 go build -v --ldflags=--s|go build -mod vendor -buildmode=pie -v|g' -e "s|-extldflags '-static' |-extldflags '-pie' |g" Makefile
|
|
make
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
install -m 755 auth_server/auth_server %{buildroot}%{_sbindir}/
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md chart docs examples
|
|
%{_sbindir}/auth_server
|
|
|
|
%changelog
|