[ 
https://issues.apache.org/jira/browse/NIFIREG-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16529834#comment-16529834
 ] 

ASF GitHub Bot commented on NIFIREG-181:
----------------------------------------

Github user apiri commented on a diff in the pull request:

    https://github.com/apache/nifi-registry/pull/129#discussion_r199486943
  
    --- Diff: nifi-registry-docker/dockerhub/sh/update_flow_provider.sh ---
    @@ -0,0 +1,42 @@
    +#!/bin/sh -e
    +
    +#    Licensed to the Apache Software Foundation (ASF) under one or more
    +#    contributor license agreements.  See the NOTICE file distributed with
    +#    this work for additional information regarding copyright ownership.
    +#    The ASF licenses this file to You under the Apache License, Version 
2.0
    +#    (the "License"); you may not use this file except in compliance with
    +#    the License.  You may obtain a copy of the License at
    +#
    +#       http://www.apache.org/licenses/LICENSE-2.0
    +#
    +#    Unless required by applicable law or agreed to in writing, software
    +#    distributed under the License is distributed on an "AS IS" BASIS,
    +#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
    +#    See the License for the specific language governing permissions and
    +#    limitations under the License.
    +
    +providers_file=${NIFI_REGISTRY_HOME}/conf/providers.xml
    +property_xpath='/providers/flowPersistenceProvider'
    +
    +add_property() {
    +  property_name=$1
    +  property_value=$2
    +
    +  if [ -n "${property_value}" ]; then
    +    xmlstarlet ed --subnode "/providers/flowPersistenceProvider" --type 
elem -n property -v "${property_value}" providers.xml | xmlstarlet ed --subnode 
"/providers/flowPersistenceProvider/property[not(name)]" --type attr -n name -v 
"${property_name}"
    +  fi
    +}
    +
    +xmlstarlet ed --inplace -u "${property_xpath}/property[@name='Flow Storage 
Directory']" -v "${NIFI_REGISTRY_FLOW_STORAGE_DIR:-./flow_storage}" 
"${providers_file}"
    +
    +case ${NIFI_REGISTRY_FLOW_PROVIDER} in
    +    file)
    --- End diff --
    
    what are your thoughts on making this the default case?


> Make flow provider configurable in Docker
> -----------------------------------------
>
>                 Key: NIFIREG-181
>                 URL: https://issues.apache.org/jira/browse/NIFIREG-181
>             Project: NiFi Registry
>          Issue Type: New Feature
>            Reporter: Mike Thomsen
>            Assignee: Mike Thomsen
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to