From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 6F9F46DE0ACD for ; Fri, 19 Aug 2016 07:30:06 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 1.632 X-Spam-Level: * X-Spam-Status: No, score=1.632 tagged_above=-999 required=5 tests=[RCVD_IN_BRBL_LASTEXT=1.644, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qmtS2ep7W3_F for ; Fri, 19 Aug 2016 07:30:04 -0700 (PDT) X-Greylist: delayed 1607 seconds by postgrey-1.35 at arlo; Fri, 19 Aug 2016 07:30:04 PDT Received: from shgn.de (shgn.de [37.48.87.41]) by arlo.cworth.org (Postfix) with ESMTPS id 2F9406DE0A89 for ; Fri, 19 Aug 2016 07:30:04 -0700 (PDT) Received: from ritchie.offis.uni-oldenburg.de ([134.106.53.254] helo=pipc.ddns.lcl) by shgn.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bakOB-000537-SZ; Fri, 19 Aug 2016 16:03:16 +0200 From: Philipp Ittershagen To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: [RFC PATCH] test: add devel/test-in-docker.sh In-Reply-To: References: <1471381671-21134-1-git-send-email-tomi.ollila@iki.fi> User-Agent: Notmuch/0.22.1 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Fri, 19 Aug 2016 16:03:15 +0200 Message-ID: <8760qwc0v0.fsf@pipc.ddns.lcl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 14:30:06 -0000 Tomi Ollila writes: > On Wed, Aug 17 2016, Tomi Ollila wrote: > >> With this user can try and test notmuch in docker container, >> in fixed environment where it should compile and tests should pass... >> >> Currently provided container environments are Debian 8.5 and >> Ubuntu 16.04 based. Host OS could be any Linux environment with >> modern enough docker; Perhaps this works on macOS (with docker 1.12+) >> too (in Windows this script probably fails). >> --- >> >> Currently quite a few tests FAIL -- due to missing prerequisite tests. >> It would be easy to add some packages, like gdb, emacs(-nox), dtach, >> but I left those out just to tease you >;) >> > > There are 2 problems in this script > > 1) If the initial docker images (ubuntu:16.04 or debian:8.5) are not > pulled before docker build started, using sha256 hash of the docker > image doesn't work as the initial image where to start building on. > > 2) Surprisingly(*) ubuntu:16.03 sha256 has changed from > 42118e3df429f09ca581a9deb3df274601930e428e452f7e4e9f1833c56a100a to=20 > f8d79ba03c00bbcd8079cf05b7526ac8f4f422744aad8c3747a29a38ed8c4a41 > between 2016-08-15 (mon) and 2016-08-19 (fri). > > So, currently `docker pull debian:8.5` and then > `./test-in-docker debian8` should work. If ubuntu:16.04 was pulled early > enough `./test-in-docker ubuntu1604` would work (too). > > The next version (which I probably do sometime in distant future, when I > have time to enchange tests (before that I try to do some reviews!)) will > probably work the opposite way -- use name:tag as source and after build > spit a (friendly) WARNING if the hash of the initial image has changed > in-between. > > > (*) or perhaps not so surprisingly -- anyway it is unfortunate that these > images are not so ephemeral as one would wish for... > > > Tomi > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch --=20 Philipp Ittershagen Senior Researcher OFFIS e.V. - Institut f=C3=BCr Informatik FuE Berech Verkehr | R&D Division Transportation Escherweg 2 - 26121 Oldenburg - Germany Phone/Fax: +49 441 9722-715 / -278 E-Mail: philipp.ittershagen@offis.de URL: http://www.offis.de/ Registergericht: Amtsgericht Oldenburg VR 1956 Vorstand: Prof. Dr.-Ing. Wolfgang H. Nebel (Vorsitzender), Prof. Dr. techn. Susanne Boll-Westermann, Prof. Dr. Werner Damm, Prof. Dr.-Ing. Andreas Hein, Prof. Dr. Sebastian Lehnhoff