docker-credential-secretser.../docker-credential-secretservice.spec
Miquel Sabate Sola 7d165af3a4 - Update to version 0.6.0:
* pass: better initialization check
  * Add instructions for pass helper configuration
  * Bump 0.6.0
  * Fix Makefile issues * mkdir fails when `bin` exists * obtaining golint fails if previously installed (w/out the -u flag)
  * fix test
  * return "" instead of an error when pass isn't present
  * pass backend: expose pass initialized flag
  * add a deb package for pass/secret service backends
  * A new entry point for calling the cred helpers that allow passing environment variables

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker-credential-secretservice?expand=0&rev=3
2018-06-27 09:15:26 +00:00

77 lines
2.4 KiB
RPMSpec

#
# 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.6.0
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