From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mDhSI24qHmG7cAAAgWs5BA (envelope-from ) for ; Thu, 19 Aug 2021 11:54:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aFsnH24qHmFGCgAA1q6Kng (envelope-from ) for ; Thu, 19 Aug 2021 09:54:54 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C1AC713D29 for ; Thu, 19 Aug 2021 11:54:53 +0200 (CEST) Received: from localhost ([::1]:41216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGelA-0000gv-4i for larch@yhetil.org; Thu, 19 Aug 2021 05:54:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGekw-0000du-1P for help-guix@gnu.org; Thu, 19 Aug 2021 05:54:40 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:40195) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGekt-0002JK-G9 for help-guix@gnu.org; Thu, 19 Aug 2021 05:54:37 -0400 Date: Thu, 19 Aug 2021 09:54:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1629366872; bh=BpWYEDjcWQwwXpdQ6auf7PcXuh9Y+DlSlHt/OEvpG8Y=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=LXW4OngOnifMTZH9UX5Ibu6MkYY2jMBDG7N1oKxJziFNsOI8/CQjSQlsXOHcV1Kd9 XXIenwHKT3qTPHpeEzkoxlgtCAoZ78vYRPl17P6hrNmqjHX/g1uj4pwtjEhbNt1AOs GscG6BTMwDG/3c+9Hj8qtDSScsjwyJG6mRFTNr+0= To: Edouard Klein From: =?utf-8?Q?Todor_Kondi=C4=87?= Cc: help-guix@gnu.org Subject: Re: guix pack and exposing ports Message-ID: In-Reply-To: <87tujlixhh.fsf@rdklein.fr> References: <4no0564iP4u1kbR3RQCYehUZKZl5ijwMQZqXrwP9MevWQE1Hh6fayNOPVIIXlSJ4cHZ2bd8NFstJgp8RIEIyRWpzjumzWbUKjQDMO4dXjcw=@protonmail.com> <87tujlixhh.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=tk.code@protonmail.com; helo=mail1.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: =?utf-8?Q?Todor_Kondi=C4=87?= Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629366894; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BpWYEDjcWQwwXpdQ6auf7PcXuh9Y+DlSlHt/OEvpG8Y=; b=gkH58S/BZdHYbIERhzasFmk1VlYyv5BcAlSQhCf8jTbWeLSUn+TS+Xoo900AB5YxOm2tm5 ke+LnGfjxNSLbx76077UQpKC0sIBtdZDxibhFSq4hOeI4gbUbpNz88DYP/0LB7jgCvd4CA OCSqOdp+3r7Vx/EjXMA79UYFQFPlbwpxpqkZogP5QCBKHim6emNJxfUf7SkqAiZFoqG42h t6YdrOScnOl34W9oxJcgfeut4P1+mWpWt3WyBGjs9RMccrKNoC2i5cDbFH+A/xVD11J7/N GqMrfcKnq0Ou2d8OATVh/T/3uAmmsE/Z/EvSzcBU1LXNM9WBnxGEjmusIvm59A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629366894; a=rsa-sha256; cv=none; b=ifNrctO0cWjfOFhtJHhgUov6/Gc0yl+sXL1y/VpvkSwuFHGfTiRfwgRqGU29Dlm+ES0zrk dTqd58Nuyx8CP7m74KIotzmpk5c8NbQ14IGRC7c9Y9xMcGtxNtdsr0ksohpcMCq1vZtBDm JOipnibWdn2mvUIHTjHOJ7woAz3WsuDC4m7ju47bxmb9J0i81sdg5e/E7ZSo9Aa1x61t8I IrkublZ5K4Hygx2Ty/gBBhnPTH9sR88sMBva63x5C4Xe777qTc/jt3S/2HnYsyF17CQ92n Ph+ULluaMxuJjg4UKaX9Q0d4NgFwMbrMWnF7IspzRBW+E+CfVjmBe9mfTBN6kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=LXW4OngO; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=LXW4OngO; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: C1AC713D29 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: DM3LDEBDmQxU Thanks Edouard! So far I'm trying to follow the route where additional things are built on = top of the existing image. Also managed to trim the image to a very bearabl= e ~150Mb once I trimmed the manifest to bare necessities. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Thursday, August 19th, 2021 at 11:40 AM, Edouard Klein = wrote: > Hi ! > > From what I know, with guix pack you can only have the dependencies in > > the docker image, but you won't have anything to start or manage your > > software automatically. You need to invoke the correct command (with > > docker run, I believe). > > What you can do is create an operating-system declaration and use the > > guix system docker-image subcommand. Note that this is way more > > involved, as you need to create a shepherd service for your software. > > I quickly ran into docker limitations following this route, but > > depending on what you want to do this may be the way to go. > > The alternative is to use the guix pack image as the base image in a > > standard dockerfile. > > As for the size of the image, see this thread > > https://lists.gnu.org/archive/html/help-guix/2021-07/msg00064.html > > Good luck > > Todor Kondi=C4=87 writes: > > > Hello, > > > > Please bear with me since I am not that very docker savvy. As far as I = understand, normally, one can expose certain ports in a docker description = file. But, how to do that when using `guix pack -f docker` command where th= e docker recipe is hidden from the user? > > > > Also, I note I'm getting ~10 GiG image for a flimsy program depending o= n R and shiny. Somehow that doesn't feel right. :)