From patchwork Mon May 8 04:56:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 759522 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wLr5L2cPmz9s7y for ; Mon, 8 May 2017 15:04:22 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="EocwOIXr"; dkim-atps=neutral Received: from localhost ([::1]:57665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7aqJ-0008PG-QD for incoming@patchwork.ozlabs.org; Mon, 08 May 2017 01:04:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7akF-0003PT-QL for qemu-devel@nongnu.org; Mon, 08 May 2017 00:58:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7akE-0007pB-PK for qemu-devel@nongnu.org; Mon, 08 May 2017 00:58:03 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:34798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7akE-0007p4-Lf for qemu-devel@nongnu.org; Mon, 08 May 2017 00:58:02 -0400 Received: by mail-qk0-x243.google.com with SMTP id u75so8660744qka.1 for ; Sun, 07 May 2017 21:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZfLegW3rF3vXiC8cxcFCnfueWCWmWdmi7+vZeyfSEbY=; b=EocwOIXrxtH2LCX9a9AJn0fl8rvP4bzwNtK+mjT9c+Eytw9u/Q0w5lu6y3Jz+tXHoV eH2/Z2f5lP73ZHDG7YG57HH+dm+z6IRFaedMIj6hXd6D07UJSwSbTTX7FX56259NKNk1 nv7as56KjnMoN2ajpv3iyn7Hz0MbpGdbfv6KqVide/oPzn9m3XnKyR7kQoSi0b/Os73o 4wd594gvhPjI1Dg1LcBkI93ZxFDs5WtlTrc/xVxJOnZZ0ZPtTZhpYv00tEMKdyFBUkE9 1i+2jYa/spCxDOs4jXeLWtqmCTT8uW23tggwJO3sYAI8zDLW+4Mxbvia3eD6vk67RRZt EWXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ZfLegW3rF3vXiC8cxcFCnfueWCWmWdmi7+vZeyfSEbY=; b=fguhBJSY/aQ+S1atG2PYuc79gjJG2oy/D7tztxbW/lUhH+Wafw+iyAOh7Q0pjmnvDC iH8tPmHbEtnHnL3nEqXLG8qIKmrMDyorc9DpZufAEwvF99Iq2Mj9LjgkAezyvC0gPm+r DKups8NeEGvwCd8IJshVbdxZ41gANo0B38ciofThGi3u8LyfiBcRzHtky0imT+UBwWaZ i8KXyMoYLPP0vPhrdGuTV0y1vck4ea40TOAxjo6POEKNvKYWkJBRIC8hgQNdX5fYYDmt ZFJVheU9/tDCgI3cfajDeTd+3i7i0NLXTWGQDysYd5ag0ItFKSbHwU3mtttK5IkONtJl P19w== X-Gm-Message-State: AODbwcA4X1cEnQNI6KlUbUOITg4W8XAlpkr5Jm7o6ifJ+Hc//4YxhGT0 0ZLH2aqzJ/mDuA== X-Received: by 10.55.24.158 with SMTP id 30mr21823334qky.171.1494219482002; Sun, 07 May 2017 21:58:02 -0700 (PDT) Received: from localhost.localdomain ([138.117.48.226]) by smtp.gmail.com with ESMTPSA id m188sm4358549qkc.5.2017.05.07.21.58.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 May 2017 21:58:01 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng Date: Mon, 8 May 2017 01:56:56 -0300 Message-Id: <20170508045715.21770-5-f4bug@amsat.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170508045715.21770-1-f4bug@amsat.org> References: <20170508045715.21770-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [PATCH 04/23] docker: compact debian base X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" - install common/basic tools at once - one-line Emdebian setup - use eatmydata and remove apt cache to save space - add bison and flex and git Signed-off-by: Philippe Mathieu-Daudé --- tests/docker/dockerfiles/debian.docker | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tests/docker/dockerfiles/debian.docker b/tests/docker/dockerfiles/debian.docker index 52bd79938e..694f8d3b63 100644 --- a/tests/docker/dockerfiles/debian.docker +++ b/tests/docker/dockerfiles/debian.docker @@ -9,17 +9,19 @@ # FROM debian:stable-slim -# Setup some basic tools we need -RUN apt update -RUN apt install -yy curl aptitude - -# Setup Emdebian -RUN echo "deb http://emdebian.org/tools/debian/ jessie main" >> /etc/apt/sources.list -RUN curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add - +# Install some basic tools and common build utilities +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -yy \ + eatmydata && \ + DEBIAN_FRONTEND=noninteractive eatmydata apt-get install -y --no-install-recommends \ + curl aptitude \ + build-essential clang git \ + bison flex && \ + rm -rf /var/lib/apt # Duplicate deb line as deb-src RUN cat /etc/apt/sources.list | sed "s/deb/deb-src/" >> /etc/apt/sources.list -# Install common build utilities -RUN apt update -RUN apt install -yy build-essential clang +# Setup Emdebian +RUN echo "deb http://emdebian.org/tools/debian/ jessie main" >> /etc/apt/sources.list && \ + curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -