NIFI-5438 volume support for the NiFi docker containers#2905
NIFI-5438 volume support for the NiFi docker containers#2905pepov wants to merge 1 commit intoapache:masterfrom
Conversation
…reate proper volumes for persistence. Notes: create conf instead of conf/templates since it will be created automatically. Create database_repository instead of data, since that is the default configuration. Create state volume used to store local state by default.
|
@pepov can you share some examples of how to test this? |
|
@MikeThomsen sure! If you run the integrations tests you will have the following images available: Now you run one of those, for example: You can inspect the volumes it created using the following command: You won't be able to access that directory from your host on a Mac for example, but you can mount it and examine it using another docker container. Lets mount the whole You can combine this with bind mounting a volume from your host system and you are then ready to make backups from a running or even from an already removed container for example. After removing the nifi container forcefully: You will still be able to list the volumes and mount it to an arbitrary container as in the previous example: |
|
Looks good to me |
|
hey @MikeThomsen, Didn't know if you wanted to check this out a bit more. If not, I am happy to close it out and merge it in. Thanks! |
|
Go for it. I'm not very knowledgeable on the subject, so I'll defer. |
|
Sounds good. Thanks for confirming. |
Create all volume directories for chowning properly, then create proper volumes for persistence. Notes:
mvn integration-test -P dockerran fine from thenifi-dockerfolder against both modulesThank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.