mirror of
https://github.com/valitydev/gentoo-overlay.git
synced 2024-11-06 09:55:21 +00:00
harbor: update
This commit is contained in:
parent
36e56c112e
commit
5d6781f27b
15
app-emulation/harbor/files/harbor-core.init.d
Normal file
15
app-emulation/harbor/files/harbor-core.init.d
Normal 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
|
||||
}
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user