[GitHub] [nifi] kevdoran commented on pull request #6329: NIFI-10360 VOLUME declaration prevents updating flow from CI

2022-09-07 Thread GitBox


kevdoran commented on PR #6329:
URL: https://github.com/apache/nifi/pull/6329#issuecomment-1239566918

   Closing per discussion. Will revisit as part of [larger 
changes](https://cwiki.apache.org/confluence/display/NIFI/NiFi+Docker+Container+Improvements),
 planned tentatively for sometime in the next couple of months.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [nifi] kevdoran commented on pull request #6329: NIFI-10360 VOLUME declaration prevents updating flow from CI

2022-09-07 Thread GitBox


kevdoran commented on PR #6329:
URL: https://github.com/apache/nifi/pull/6329#issuecomment-1239554932

   @vitalyzhakov If you are ok with revisiting this as part of a larger 
refactoring to our approach to Docker images, we can go ahead and close this PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [nifi] kevdoran commented on pull request #6329: NIFI-10360 VOLUME declaration prevents updating flow from CI

2022-09-02 Thread GitBox


kevdoran commented on PR #6329:
URL: https://github.com/apache/nifi/pull/6329#issuecomment-1235593717

   @vitalyzhakov The use of `VOLUME` separates the data in the the 
configuration, state, and nifi repository directory from the rest of the 
container. This adds operational flexibility, for example, the volume can be 
mounted on another container, for example, for taking backups [1]. For example, 
someone might want to run this nightly:
   
   ```
   docker run --rm --volumes-from  --volume ~/backup:/backup 
ubuntu bash -c "cd  && tar -cvf 
/backup/.tar ."
   ```
   Source: https://www.ionos.com/digitalguide/server/security/docker-backup/
   
   That said, as stated above, we are curerntly reevaluating our current 
approach to Docker images for the project, and a major area for improvement is 
making it easier to use bind mounts or named volumes for configuration or 
writeable storage. So I'd expect some changes and improvements in this area in 
the near future, but for now I'd prefer to keep the use of VOLUME in these 
Dockerfiles.
   
   [1] 
https://docs.docker.com/storage/volumes/#backup-restore-or-migrate-data-volumes 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [nifi] kevdoran commented on pull request #6329: NIFI-10360 VOLUME declaration prevents updating flow from CI

2022-08-31 Thread GitBox


kevdoran commented on PR #6329:
URL: https://github.com/apache/nifi/pull/6329#issuecomment-1233012799

   Thanks for your proposal and reasoning @vitalyzhakov. 
   
   For now, I agree with @exceptionfactory that there are more benefits than 
downsides to defining the VOLUME inside the Dockerfile. The main downside is 
when trying to extend the image, but the current images for Apache NiFi are not 
optimized to be used as base images. Many other people in the community have 
come up with alternatives images for Apache NiFi that reuse some of the same 
Dockerfile commands, but do not inherit from apache/nifi.
   
   That said, I'm planning to devote some time this fall to refactoring our 
approach to Docker images for the project, including separating out the base 
image from the final image, and also change our approach to sourcing external 
configurations, which will likely require re-evaluating our use of volumes. If 
you would like to offer suggestions for changes you would like to see in the 
Apache NiFi Docker images, we are collecting them here: 
https://cwiki.apache.org/confluence/display/NIFI/NiFi+Docker+Container+Improvements.
 You can request write access to the wiki on our [developer mailing 
list](https://nifi.apache.org/mailing_lists.html) or reply here and I'll be 
happy to add them to the wiki (with attribution). 
   
   Thanks! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org