NIFI-10276 Support database option for Registry Flow Provider in Docker

This closes #6244

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Julien Guitton 2022-07-25 14:04:42 +02:00 committed by exceptionfactory
parent 99a0c05070
commit 0afdd32bb5
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA

View File

@ -35,6 +35,9 @@ case ${NIFI_REGISTRY_FLOW_PROVIDER} in
file)
xmlstarlet ed --inplace -u "${property_xpath}/class" -v "org.apache.nifi.registry.provider.flow.FileSystemFlowPersistenceProvider" "${providers_file}"
;;
database)
xmlstarlet ed --inplace -u "${property_xpath}/class" -v "org.apache.nifi.registry.provider.flow.DatabaseFlowPersistenceProvider" "${providers_file}"
;;
git)
xmlstarlet ed --inplace -u "${property_xpath}/class" -v "org.apache.nifi.registry.provider.flow.git.GitFlowPersistenceProvider" "${providers_file}"
add_property "Remote To Push" "${NIFI_REGISTRY_GIT_REMOTE:-}"