add nifi-registry package
Build Alpine Packages / preflight (pull_request) Successful in 10s
Build Alpine Packages / build (gitea) (pull_request) Successful in 8s
Build Alpine Packages / build (greptimedb) (pull_request) Successful in 10s
Build Alpine Packages / build (lavinmq) (pull_request) Successful in 9s
Build Alpine Packages / build (nifi-registry) (pull_request) Successful in 45s
Build Alpine Packages / build (rclone-openrc) (pull_request) Successful in 7s
Build Alpine Packages / build (seaweedfs) (pull_request) Successful in 9s
Build Alpine Packages / build (nifi) (pull_request) Successful in 3m39s
Build Alpine Packages / verify-and-publish (pull_request) Successful in 3m21s
Build Alpine Packages / preflight (pull_request) Successful in 10s
Build Alpine Packages / build (gitea) (pull_request) Successful in 8s
Build Alpine Packages / build (greptimedb) (pull_request) Successful in 10s
Build Alpine Packages / build (lavinmq) (pull_request) Successful in 9s
Build Alpine Packages / build (nifi-registry) (pull_request) Successful in 45s
Build Alpine Packages / build (rclone-openrc) (pull_request) Successful in 7s
Build Alpine Packages / build (seaweedfs) (pull_request) Successful in 9s
Build Alpine Packages / build (nifi) (pull_request) Successful in 3m39s
Build Alpine Packages / verify-and-publish (pull_request) Successful in 3m21s
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
apk add nifi-registry nifi-registry-openrc curl
|
||||
|
||||
test -x /usr/bin/nifi-registry
|
||||
test -x /usr/lib/nifi-registry/bin/nifi-registry.sh
|
||||
test -d /etc/nifi-registry
|
||||
test -L /usr/lib/nifi-registry/conf
|
||||
test "$(readlink /usr/lib/nifi-registry/conf)" = /etc/nifi-registry
|
||||
test -d /var/lib/nifi-registry
|
||||
test -d /var/log/nifi-registry
|
||||
test -f /etc/init.d/nifi-registry
|
||||
test -f /etc/conf.d/nifi-registry
|
||||
test -f /usr/lib/nifi-registry/README
|
||||
test -d /usr/lib/nifi-registry/docs
|
||||
test "$(stat -c '%U:%G %a' /var/lib/nifi-registry)" = "nifi-registry:nifi-registry 750"
|
||||
|
||||
rc-update add nifi-registry default || true
|
||||
test -L /etc/runlevels/default/nifi-registry
|
||||
rc-service nifi-registry start
|
||||
|
||||
for _attempt in $(seq 1 300); do
|
||||
if curl --fail --silent --show-error http://localhost:18080/nifi-registry/ >/dev/null; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
|
||||
curl --fail --silent --show-error http://localhost:18080/nifi-registry/ >/dev/null
|
||||
rc-service nifi-registry status
|
||||
rc-service nifi-registry stop
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
repo_root="${REPO_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../../.." && pwd)}"
|
||||
# shellcheck source=scripts/apk/test-install-lib.sh
|
||||
. "${repo_root}/scripts/apk/test-install-lib.sh"
|
||||
|
||||
apk_test_install_run "${repo_root}" "${PACKAGE_NAME:-nifi-registry}" "${PACKAGE_VERSION:-2.12.0-r0}" <<'SCRIPT'
|
||||
set -e
|
||||
|
||||
if [ -n "${ALPINE_REPOSITORY_URL}" ]; then
|
||||
if [ -n "${ALPINE_REPOSITORY_KEY_URL}" ]; then
|
||||
apk add --no-cache curl >/dev/null
|
||||
cd /etc/apk/keys
|
||||
curl -fsSLOJ "${ALPINE_REPOSITORY_KEY_URL}"
|
||||
fi
|
||||
printf "%s\n" "${ALPINE_REPOSITORY_URL}" >> /etc/apk/repositories
|
||||
else
|
||||
cp "/repo/${ALPINE_ARCH}"/*.rsa.pub /etc/apk/keys/
|
||||
printf "%s\n" /repo >> /etc/apk/repositories
|
||||
fi
|
||||
apk update
|
||||
apk add "${PACKAGE_NAME}" "${PACKAGE_NAME}-openrc"
|
||||
|
||||
test -x /usr/bin/nifi-registry
|
||||
test -x /usr/lib/nifi-registry/bin/nifi-registry.sh
|
||||
test -d /etc/nifi-registry
|
||||
test -L /usr/lib/nifi-registry/conf
|
||||
test "$(readlink /usr/lib/nifi-registry/conf)" = /etc/nifi-registry
|
||||
test -d /var/lib/nifi-registry
|
||||
test -d /var/log/nifi-registry
|
||||
test -f /etc/init.d/nifi-registry
|
||||
test -f /etc/conf.d/nifi-registry
|
||||
test -f /usr/lib/nifi-registry/README
|
||||
test -d /usr/lib/nifi-registry/docs
|
||||
test "$(stat -c '%U:%G %a' /var/lib/nifi-registry)" = "nifi-registry:nifi-registry 750"
|
||||
|
||||
rc-update add nifi-registry default
|
||||
test -L /etc/runlevels/default/nifi-registry
|
||||
SCRIPT
|
||||
Reference in New Issue
Block a user