Accepting request 477914 from home:mssola
OBS-URL: https://build.opensuse.org/request/show/477914 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker-credential-secretservice?expand=0&rev=1
This commit is contained in:
commit
061fd10251
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
16
_service
Normal file
16
_service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/docker/docker-credential-helpers</param>
|
||||||
|
<param name="exclude">.git</param>
|
||||||
|
<param name="filename">docker-credential-helpers</param>
|
||||||
|
<param name="versionformat">0.4.2</param>
|
||||||
|
<param name="revision">v0.4.2</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service mode="disabled" name="set_version"/>
|
||||||
|
</services>
|
3
config.secure.json
Normal file
3
config.secure.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"credsStore": "secretservice"
|
||||||
|
}
|
3
docker-credential-helpers-0.4.2.tar.xz
Normal file
3
docker-credential-helpers-0.4.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:521166cb6c49b0517ece49563b1fd081ae486df5630e8acc03e51ce92bd3e82b
|
||||||
|
size 17640
|
5
docker-credential-secretservice.changes
Normal file
5
docker-credential-secretservice.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 9 09:31:40 UTC 2017 - msabate@suse.com
|
||||||
|
|
||||||
|
- Initial commit
|
||||||
|
|
76
docker-credential-secretservice.spec
Normal file
76
docker-credential-secretservice.spec
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
#
|
||||||
|
# spec file for package docker-distribution
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# 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 http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: docker-credential-secretservice
|
||||||
|
Version: 0.4.2
|
||||||
|
Release: 0
|
||||||
|
Summary: Leverage Docker credentials with libsecret
|
||||||
|
License: MIT
|
||||||
|
Group: System/Management
|
||||||
|
Url: http://www.docker.io
|
||||||
|
Source0: docker-credential-helpers-%{version}.tar.xz
|
||||||
|
Source1: config.secure.json
|
||||||
|
BuildRequires: go >= 1.6.0
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: libsecret-devel
|
||||||
|
Requires: libsecret
|
||||||
|
Requires(pre): %fillup_prereq
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%{?systemd_requires}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Docker by default uses base64 to store the credentials for the different
|
||||||
|
registries. This behavior can be changed by leveraging the credentials storage
|
||||||
|
to this program, which uses libsecret in Linux.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n docker-credential-helpers-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
export GOPATH=$PWD/go
|
||||||
|
mkdir -p $GOPATH/src/github.com/docker
|
||||||
|
|
||||||
|
cp -r $PWD/vendor/* $GOPATH/src
|
||||||
|
ln -s $PWD $GOPATH/src/github.com/docker/docker-credential-helpers
|
||||||
|
|
||||||
|
make %{?_smp_mflags} secretservice
|
||||||
|
|
||||||
|
%pre
|
||||||
|
cat >&2 <<EOF
|
||||||
|
|
||||||
|
In order to have a more secure installation of Docker, copy the
|
||||||
|
/etc/docker/config.secure.json file into ~/.docker/config.json. This way Docker
|
||||||
|
will use libsecret in order to store your credentials when accessing a Docker
|
||||||
|
Registry.
|
||||||
|
EOF
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -D -m755 bin/docker-credential-secretservice %{buildroot}/%{_bindir}/docker-credential-secretservice
|
||||||
|
install -D -m644 %{SOURCE1} %{buildroot}/etc/docker/config.secure.json
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc LICENSE README.md CHANGELOG.md MAINTAINERS
|
||||||
|
%{_bindir}/docker-credential-secretservice
|
||||||
|
%dir %{_sysconfdir}/docker
|
||||||
|
%config %{_sysconfdir}/docker/config.secure.json
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user