harbor: update

This commit is contained in:
Alexander Miroshnichenko 2019-10-03 18:41:09 +03:00
parent 36e56c112e
commit 5d6781f27b
No known key found for this signature in database
GPG Key ID: E93720C6C73A77F4
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
#!/sbin/openrc-run
# Copyright 2019 RBK.MONEY
# Distributed under the terms of the GNU General Public License v2
envfile=${HARBOR_CORE_ENV_FILE:-/etc/harbor/core/env}
envkeys="$(grep -v ^# ${envfile} |cut -f1 -d=)"
command=/usr/bin/harbor-core
start_stop_daemon_args="`for key in ${envkeys};
do echo -n ' -e '"${key}"=$(grep ^${key} ${envfile}|cut -f2 -d=);
done` --user harbor --group harbor --background --make-pidfile"
depend() {
use net
}

View File

@ -50,7 +50,7 @@ src_compile() {
}
src_install() {
use core && newbin ${GOBIN}/core ${PN}-core
use core && newbin ${GOBIN}/core ${PN}-core && doinitd ${FILESDIR}/harbor-core.init.d
use jobservice && newbin ${GOBIN}/jobservice ${PN}-jobservice
use registryctl && newbin ${GOBIN}/registryctl ${PN}-registryctl