You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Vitalii Zhakov (Jira)" <ji...@apache.org> on 2022/07/30 12:28:00 UTC

[jira] [Commented] (NIFI-5438) Declare volumes for the NiFi docker container for persistence by default

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

Vitalii Zhakov commented on NIFI-5438:
--------------------------------------

Hello!

I have CD pipeline:

1) build docker image with Nifi flow
{code}
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"] {code}
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 getting changes to Nifi's flow, but system has about 8 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.

> Declare volumes for the NiFi docker container for persistence by default
> ------------------------------------------------------------------------
>
>                 Key: NIFI-5438
>                 URL: https://issues.apache.org/jira/browse/NIFI-5438
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Docker
>    Affects Versions: 1.8.0
>            Reporter: Peter Wilcsinszky
>            Assignee: Peter Wilcsinszky
>            Priority: Major
>             Fix For: 1.8.0
>
>
> Volume declarations are missing from the NiFi Dockerfiles.
> *Without* that all data get lost after removing the container when there was no explicit volume declarations defined.
> *With* volume declarations all the data on the declared volumes will get persisted on the host without any explicit volume declarations required by the user.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)