From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mLr6NCEnHmGNbAAAgWs5BA (envelope-from ) for ; Thu, 19 Aug 2021 11:40:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id BX3HMCEnHmHtWgAAB5/wlQ (envelope-from ) for ; Thu, 19 Aug 2021 09:40:49 +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 2791E1951D for ; Thu, 19 Aug 2021 11:40:49 +0200 (CEST) Received: from localhost ([::1]:38214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGeXY-0006W4-8E for larch@yhetil.org; Thu, 19 Aug 2021 05:40:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGeXP-0006Vv-Aw for help-guix@gnu.org; Thu, 19 Aug 2021 05:40:39 -0400 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGeXN-0006XI-Fo for help-guix@gnu.org; Thu, 19 Aug 2021 05:40:39 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1629366026; cv=none; d=zohomail.com; s=zohoarc; b=cdw87P5jAhLxFUbhWjYljh0/HQLH10ZbWRK8OujrTrRkCut+Tti74d+uXhtjkLhi7Hi6V248vQSP4bTr1JCJXaOp3Bs9sPar/+EV76kSWeQChIeSo861ZH/q7Tur4BzkNXjJp0xnbeohQJuYCr+VUCjlRmSIX2HGPCkpPw2E6SQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629366026; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=MWcW+7cJvX7WxTayIpbVX8nC+uhp8iz13O7U96UQEn4=; b=eq8kj3eACDRGN6Cu5i+unBWBGJ5i1LEQCpxW6b5k8HpYOKhSENnJ298RpFlqNOOkhJEYrd0BaDD8MJx5RX3VWX02mYlHxNpWOZSU08YK24hgt2uBqk5u8+2vMGSvzKfvvr9LWn43arN09qCxbYHmbHuN8TFgrzRkSArIX3nIFJw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1629366026; s=zoho; d=rdklein.fr; i=edou@rdklein.fr; h=References:From:To:Cc:Subject:In-reply-to:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=MWcW+7cJvX7WxTayIpbVX8nC+uhp8iz13O7U96UQEn4=; b=bUbjitJV0uo8gOKIk6HB+6hBGw5g/w1faMoYdYxEsmYDSXDaKtvVkn51YH56rQ6U ic8dJuRPJmaH60RSZE2FGulMCyxT0KMbYjBG0N8UqV+hMmpbFcEnVKgb+RAc5TARMN4 eZp+vaaDTm2QWFZi4hjlAfmO3TUZHWiNU77bwoo0= Received: from Rasoir (33.86.95.79.rev.sfr.net [79.95.86.33]) by mx.zohomail.com with SMTPS id 1629366023222530.330470001912; Thu, 19 Aug 2021 02:40:23 -0700 (PDT) References: <4no0564iP4u1kbR3RQCYehUZKZl5ijwMQZqXrwP9MevWQE1Hh6fayNOPVIIXlSJ4cHZ2bd8NFstJgp8RIEIyRWpzjumzWbUKjQDMO4dXjcw=@protonmail.com> User-agent: mu4e 1.4.15; emacs 27.2 From: Edouard Klein To: Todor =?utf-8?Q?Kondi=C4=87?= Subject: Re: guix pack and exposing ports In-reply-to: <4no0564iP4u1kbR3RQCYehUZKZl5ijwMQZqXrwP9MevWQE1Hh6fayNOPVIIXlSJ4cHZ2bd8NFstJgp8RIEIyRWpzjumzWbUKjQDMO4dXjcw=@protonmail.com> Message-ID: <87tujlixhh.fsf@rdklein.fr> Date: Thu, 19 Aug 2021 11:40:10 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.11; envelope-from=edou@rdklein.fr; helo=sender4-op-o11.zoho.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629366049; h=from:from:sender:sender: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=MWcW+7cJvX7WxTayIpbVX8nC+uhp8iz13O7U96UQEn4=; b=h+nK/jN6uf8hm9oi5q5oQv3FcHMJiWonFzt25Z6jJv5ZV4oFsbopAS/JnQYrr/K5Rd9QjY z48slNwr40DyKgELbBvEVcH9EO7q+Wpk3bt1JCqqbee6D2Q+DH7X1bOi2vvC9NuDQ8FfVd qAQoa0UIUMp2QQlfX98mWfNVfaYPNKjRwaNi73gMp3Yc4eOtb9MjZcpkdIF+7eyVDwNXmp QM2C1kHuYA0vzmTsoS/DgMNQRuIyNYVfuDnxIX29J77YfHqiS/p2GedlsolR5SgT0NmcEq O0TkMBeTyfIEVyLiCrPZM/81sQ/mX5oyqhn5zhPM/6PLJG3Z+Tsc4TJrxnFNGg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1629366049; a=rsa-sha256; cv=pass; b=smk0sZi/GuW35TAOTF69AmpxiiLjCiNZRU8iGDuq6DzBjIgm1WQVkR3WtnYrJE3QsAZNxi HsgfngQ7p/iWgkd8q9ai4etTxoB/rntyY+7u7y7xFo4atH5msd2BX9DtgL678MQ97VvWwO NtKFEi6vEKTPKrwNKIYGPjAEKtNOhhsQicOQCGavazsvx/8izF1Yb+GSZsUarGpbxAXsOY sZ1GNfTNDfNZvSbdUHiqJZQoBmZ4FqSijDjUWOHqHQfVJG+J4HDTAUFr7bAPfRf4WtCBnA o3YRHmNy8pgd24uKyd5QwMy3EWJA6WlQlCrKuJ09MNs5zuI6i3YmiwBbTupxUA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=rdklein.fr header.s=zoho header.b=bUbjitJV; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; 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.42 Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=rdklein.fr header.s=zoho header.b=bUbjitJV; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; 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: 2791E1951D X-Spam-Score: -3.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: KaluuQ6iWwTn 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 un= derstand, normally, one can expose certain ports in a docker description fi= le. But, how to do that when using `guix pack -f docker` command where the = docker recipe is hidden from the user? > > Also, I note I'm getting ~10 GiG image for a flimsy program depending on = R and shiny. Somehow that doesn't feel right. :)