Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-10360

VOLUME declaration prevents updating flow from CI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.16.0, 1.17.0
    • None
    • Docker
    • None

    Description

      Hello!

      I have CD pipeline:

      1) build docker image with Nifi flow

      FROM apache/nifi:1.16.0

      USER nifi
      COPY --chown=nifi ./build_env/images/nifi/drivers/ /opt/nifi/nifi-current/lib/
      COPY --chown=nifi ./build_env/images/nifi/project/conf/ /opt/nifi/nifi-current/conf/
      CMD ["../scripts/start.sh"]

      2) deploy to registry
      3) run docker container FROM registry's image

      VOLUME declaration prevents getting changes from image (container used data in /opt/nifi/nifi-current/conf/ from local volume instead of registry).
      Deleting container and starting new get changes to Nifi's flow, but system has 7 garbage volumes every deploy.

      Maybe creating VOLUME in Dockerfile is atavism now?
      If user removes contaner, docker creates new VOLUME and data will be lost.

      VOLUME instructions created in NIFI-5438

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zhakov Vitalii Zhakov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h