diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2016-12-06 17:22:19 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2016-12-06 17:22:19 +0100 |
commit | 30f4dcd81fce4fe777fc4ad39f8326b9b44f6029 (patch) | |
tree | c64ba2554042e3d44a22aa1023f175bc89bf544d /sys-auth/docker_auth/files | |
parent | dev-util/cgdb: update the maintainer <name/> and upstream <remote-id/> (diff) | |
download | gentoo-30f4dcd81fce4fe777fc4ad39f8326b9b44f6029.tar.gz gentoo-30f4dcd81fce4fe777fc4ad39f8326b9b44f6029.tar.bz2 gentoo-30f4dcd81fce4fe777fc4ad39f8326b9b44f6029.zip |
sys-auth/docker_auth: Initial version
Package-Manager: portage-2.3.3
Diffstat (limited to 'sys-auth/docker_auth/files')
-rw-r--r-- | sys-auth/docker_auth/files/docker_auth.confd | 2 | ||||
-rw-r--r-- | sys-auth/docker_auth/files/docker_auth.initd | 25 | ||||
-rw-r--r-- | sys-auth/docker_auth/files/docker_auth.logrotated | 8 | ||||
-rw-r--r-- | sys-auth/docker_auth/files/version.go | 6 |
4 files changed, 41 insertions, 0 deletions
diff --git a/sys-auth/docker_auth/files/docker_auth.confd b/sys-auth/docker_auth/files/docker_auth.confd new file mode 100644 index 000000000000..0a3a03d8fd14 --- /dev/null +++ b/sys-auth/docker_auth/files/docker_auth.confd @@ -0,0 +1,2 @@ +# arguments for docker-registry +command_args="/etc/docker_auth/config.yml" diff --git a/sys-auth/docker_auth/files/docker_auth.initd b/sys-auth/docker_auth/files/docker_auth.initd new file mode 100644 index 000000000000..c6fecffe7efc --- /dev/null +++ b/sys-auth/docker_auth/files/docker_auth.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Docker Registry Authentication Server" +pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} +user=${user:-${SVCNAME}} +group=${group:-${SVCNAME}} + +command="/usr/bin/auth_server" +command_args="${command_args:--log_dir /var/log/${SVCNAME} /etc/docker_auth/config.yml}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + +depend() { + need net + after net +} + +start_pre() { + checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" +} diff --git a/sys-auth/docker_auth/files/docker_auth.logrotated b/sys-auth/docker_auth/files/docker_auth.logrotated new file mode 100644 index 000000000000..7bcd082c0719 --- /dev/null +++ b/sys-auth/docker_auth/files/docker_auth.logrotated @@ -0,0 +1,8 @@ +/var/log/docker_auth/* { + su docker_auth docker_auth + missingok + size 5M + rotate 3 + compress + copytruncate +} diff --git a/sys-auth/docker_auth/files/version.go b/sys-auth/docker_auth/files/version.go new file mode 100644 index 000000000000..9c014db7f1f2 --- /dev/null +++ b/sys-auth/docker_auth/files/version.go @@ -0,0 +1,6 @@ +package main + +const ( + Version = "{version}" + BuildId = "{build_id}" +) |