Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0A85D200D08 for ; Thu, 21 Sep 2017 19:27:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 090921609E1; Thu, 21 Sep 2017 17:27:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 27C1F1609DB for ; Thu, 21 Sep 2017 19:27:46 +0200 (CEST) Received: (qmail 40335 invoked by uid 500); 21 Sep 2017 17:27:45 -0000 Mailing-List: contact dev-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list dev@nifi.apache.org Received: (qmail 40323 invoked by uid 99); 21 Sep 2017 17:27:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Sep 2017 17:27:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6CCFC1A48BA for ; Thu, 21 Sep 2017 17:27:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 1FoQdM4KT1yX for ; Thu, 21 Sep 2017 17:27:42 +0000 (UTC) Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 04E7A5FBDF for ; Thu, 21 Sep 2017 17:27:42 +0000 (UTC) Received: by mail-qt0-f175.google.com with SMTP id o13so6676553qtf.1 for ; Thu, 21 Sep 2017 10:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=k8yv4KMtRDSAVwyFffWNoTiI4NhYD8tS54Av2ciEWRE=; b=J3VunXBZlWjdgeDqKmm7RDigLs6acuyGFFHXswmEboNOWvoTgbBriPVLfANuhXLVOh h/PPEcaSa7yHBnmwjWL5KvPy36P39CVVA1NUYlXqtsxEl3cJZgwnzwCNdmrDaYldD3kW Fw+V9dvzq9P5XlFc9a6DOpfPs4HqPcrkPOJ/hXMcdn22xboRrp5wUlcHtBOW1PxieBlo vSVqK5yp5UDr4KnpgTIHLZLilKV7Qtw04Dnrcv1sBbO0DmUKLn3tC0jE103SQ8qJ+2HB 8JvrQoxF4LQ4EwWPFswoKwElI9g+HBVfii/hYBexGLINvUx9e4MbFVOo/dmKBur4F1bo NLgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=k8yv4KMtRDSAVwyFffWNoTiI4NhYD8tS54Av2ciEWRE=; b=lErM8wuUnn2yxJBjFtYNSVkDGOhcfHzjNogOURnqCOCbnKlRFbEBAhZ7RqtPPeb196 PNonhd5LRgQq68Bl5P0pwyUY9HbJ4SqbM8pU0tK0sRHJqKB9qxSx4QwfgxW7dR5YZSbq 9D02204tLzhGtrvDorFnqPl/i2CgqmVOQ+x+tz9zTDaoIc1qqUVb5SYunqjbrePj9h/5 Walm6SpPKltP4punQxyeomQVPtHP2rOCWmLRX3w0E8Q4rAA+Jyl2wML2sGJ/NQxmf2mP SWOIDJY94FJbry0QrUs+i606hTQntiKuF4rx5RVgi0RL9oYeGZ+2gkBfG1Xl9CEVi7CE 46PA== X-Gm-Message-State: AHPjjUgwOBHoa1ebIssFNKFSTml9QufbzW++EkFQ7vHWbcEk6Kl4B8Ed YRBsgP0IE3iPMB4Kp9uqLXUzIJivdbgP1mkZu4R5Pw== X-Google-Smtp-Source: AOwi7QBYvKomv5p74dzMfT2h7mxVTpRw4km2W3icYZ6ylXj4emTY6LzFCPr3p0ekGsWYrGYQxajoOHye7davN1e9eKc= X-Received: by 10.237.33.33 with SMTP id 30mr4268508qtc.138.1506014861273; Thu, 21 Sep 2017 10:27:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Michael Kobit Date: Thu, 21 Sep 2017 17:27:30 +0000 Message-ID: Subject: Re: Dockerfile and Docker Hub Management To: dev@nifi.apache.org Content-Type: multipart/alternative; boundary="94eb2c0cb4e6d5328d0559b66822" archived-at: Thu, 21 Sep 2017 17:27:47 -0000 --94eb2c0cb4e6d5328d0559b66822 Content-Type: text/plain; charset="UTF-8" I'd love to retire https://github.com/mkobit/docker-nifi as well since you have started providing your own images. On Thu, Sep 21, 2017 at 11:42 AM Kevin Doran wrote: > Thanks, Aldrin. > > I'm a +1 for a separate NiFi Docker project and release process, allowing > improvements to the containerization of NiFi artifacts to be made > independently from the artifacts (and their source files). I have observed > many community members maintaining their own NiFi Dockerfiles and Docker > Compose files, and it would be nice if the most reusable variant(s) of > these could be well maintained in one location on an independent schedule. > > I also agree a separate repository would be cleaner and preferable that a > subtree of the existing NiFi repository. > > Thanks, > Kevin > > On 9/21/17, 11:12, "Aldrin Piri" wrote: > > Hey folks, > > ** This message turned out to be more detailed than anticipated. In > summary, I propose consolidating Docker/container work with a separate > release process outside of the repository they are packaging. Full > thoughts and background follow. Any input would be appreciated! > > --- > > I've been working through providing some additional Docker > capabilities for > the project and wanted to share some thoughts as well as possible > plans to > help us be a bit more nimble and responsive to curating Dockerfiles and > their respective images on DockerHub. > > As a bit of context, we currently have the core NiFi project captured > in > two Dockerfiles, one that is used in conjunction with a Maven plugin > for > creating an image during the NiFi build (dockermaven), and another > that is > used for building tagged releases on Docker Hub (dockerhub). Both of > these > artifacts, currently, reside in a nifi-docker project and are > activated via > Maven profile, (-P docker). > > We've seen at times that this is a very coupled process and limits our > flexibility. For instance, we had an ill-placed 'chown' which caused a > duplicating layer and causes our image to be doubly large. While this > has > been remedied, given current release processes, this is included with > the > core nifi release and we have been unable to rectify that issue. > > Another issue is a very specific sequence of actions that needs to > happen > with the current release for artifacts to be triggered correctly in > Docker > Hub. This can be seen in Section 6 of the release guide [1]. While > there > are ways to rectify this if the timing isn't quite right and/or an > error is > made, it can impose an additional burden on the INFRA team to > facilitate > these requests as there currently is no capability for PMCs to manage > their > Docker repositories directly. > > Ultimately, I think we should consider a separate release process for > NiFi > Docker, and any associated efforts that may relate to those files. In > this > context, NiFi is encompassing of all projects/efforts in the project. > Additional efforts could comprise of examples of configuring NiFi to be > secured or clustered, receive data from MiNiFi instances, or using > Docker > Compose or other orchestration frameworks. I have also noticed a > number of > different areas across our work that are using Docker for integration > testing purposes. With some planning and coordination, we could likely > consolidate many of these core resources/templates to allow us to reuse > them across efforts. > > I believe there are two approaches from an organizational standpoint > that > let us execute on the separate release process effectively: > > 1.) Condense all Docker artifacts into the current NiFi repository > [2]. We > update our release for NiFi to exclude the Docker subtree to carry out > our > normal release flow and provide the build/tooling for the Docker > subtree to > be released on its own. > > 2.) Establish a new git repository to handle Docker and any other > containerization efforts and migrate all existing resources into a file > structure that makes sense. > > My inclination is toward (2). > > Regardless of path chosen above, this frees us to handle updates and > improvements to container efforts when needed. Any time we wanted to > release updates to Docker images, we could perform a separate release > on > either the subtree of (1) or the repository of (2) and reference the > associated latest artifacts of NiFi. > > If you've made it this far, thanks for working through the wall of > text and > would appreciate any thoughts or comments. > > [1] http://nifi.apache.org/release-guide.html > [2] https://git-wip-us.apache.org/repos/asf?p=nifi.git > > > > --94eb2c0cb4e6d5328d0559b66822--