Uploaded image for project: 'NiFi Registry'
  1. NiFi Registry
  2. NIFIREG-227

GitFlowPersistenceProvider option to clone repo on startup

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      To build onĀ NIFIREG-209, which added the ability to rebuild the flow metadata database from a git repository if the metadata is empty on startup, it would also be nice to have the option to clone a git repo on startup if there is not a local git repo and a remote is configured.

      The proposed feature is for the GitFlowPersistenceProvider, to check if there is a local repository during startup. If the repository is not present, and a remote is configured (to push to), start by cloning the remote.

      The use case is not supporting multiple registry instances syncing to the same git repository (that would require more work). Rather, the use case is recovery from a remote git repository. This will be especially useful when launching new docker containers as it would give the ability to create a container initialized from a remote git repo just via configuration options and not an explicit git clone step in the image/container.

        Attachments

        1. nifi-registry-app.log
          13 kB
          Rabi Kumar K C

          Issue Links

            Activity

              People

              • Assignee:
                rabikumar.kc Rabi Kumar K C
                Reporter:
                kdoran Kevin Doran
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 40m
                  3h 40m