Re: [RFC PATCH] test: add devel/test-in-docker.sh
authorTomi Ollila <tomi.ollila@iki.fi>
Fri, 19 Aug 2016 13:50:20 +0000 (16:50 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:28 +0000 (16:22 -0700)
df/0ce0633368a7a7574c1c129d7805acd190a64a [new file with mode: 0644]

diff --git a/df/0ce0633368a7a7574c1c129d7805acd190a64a b/df/0ce0633368a7a7574c1c129d7805acd190a64a
new file mode 100644 (file)
index 0000000..decf0a8
--- /dev/null
@@ -0,0 +1,93 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 363116DE098A\r
+ for <notmuch@notmuchmail.org>; Fri, 19 Aug 2016 06:50:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.559\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.559 tagged_above=-999 required=5 tests=[AWL=-0.093,\r
+  SPF_NEUTRAL=0.652] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id wzljQdIm2det for <notmuch@notmuchmail.org>;\r
+ Fri, 19 Aug 2016 06:50:46 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id C6A1C6DE0943\r
+ for <notmuch@notmuchmail.org>; Fri, 19 Aug 2016 06:50:45 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 81770100090\r
+ for <notmuch@notmuchmail.org>; Fri, 19 Aug 2016 16:50:20 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: [RFC PATCH] test: add devel/test-in-docker.sh\r
+In-Reply-To: <1471381671-21134-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1471381671-21134-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Notmuch/0.22+61~geeecb9e (https://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Fri, 19 Aug 2016 16:50:20 +0300\r
+Message-ID: <m2d1l427hf.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.22\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 19 Aug 2016 13:50:47 -0000\r
+\r
+On Wed, Aug 17 2016, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
+\r
+> With this user can try and test notmuch in docker container,\r
+> in fixed environment where it should compile and tests should pass...\r
+>\r
+> Currently provided container environments are Debian 8.5 and\r
+> Ubuntu 16.04 based. Host OS could be any Linux environment with\r
+> modern enough docker; Perhaps this works on macOS (with docker 1.12+)\r
+> too (in Windows this script probably fails).\r
+> ---\r
+>\r
+> Currently quite a few tests FAIL -- due to missing prerequisite tests.\r
+> It would be easy to add some packages, like gdb, emacs(-nox), dtach,\r
+> but I left those out just to tease you >;)\r
+>\r
+\r
+There are 2 problems in this script\r
+\r
+1) If the initial docker images (ubuntu:16.04 or debian:8.5) are not\r
+   pulled before docker build started, using sha256 hash of the docker\r
+   image doesn't work as the initial image where to start building on.\r
+\r
+2) Surprisingly(*) ubuntu:16.03 sha256 has changed from\r
+   42118e3df429f09ca581a9deb3df274601930e428e452f7e4e9f1833c56a100a to \r
+   f8d79ba03c00bbcd8079cf05b7526ac8f4f422744aad8c3747a29a38ed8c4a41\r
+   between 2016-08-15 (mon) and 2016-08-19 (fri).\r
+\r
+So, currently `docker pull debian:8.5` and then\r
+`./test-in-docker debian8` should work. If ubuntu:16.04 was pulled early\r
+enough `./test-in-docker ubuntu1604` would work (too).\r
+\r
+The next version (which I probably do sometime in distant future, when I\r
+have time to enchange tests (before that I try to do some reviews!)) will\r
+probably work the opposite way -- use name:tag as source and after build\r
+spit a (friendly) WARNING if the hash of the initial image has changed\r
+in-between.\r
+\r
+\r
+(*) or perhaps not so surprisingly -- anyway it is unfortunate that these\r
+images are not so ephemeral as one would wish for...\r
+\r
+\r
+Tomi\r