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 ms11 with LMTPS id 0IpEM6uWul/bbwAA0tVLHw (envelope-from ) for ; Sun, 22 Nov 2020 16:49:47 +0000 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 II0UL6uWul/gSgAA1q6Kng (envelope-from ) for ; Sun, 22 Nov 2020 16:49:47 +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 8C1FF94006E for ; Sun, 22 Nov 2020 16:49:47 +0000 (UTC) Received: from localhost ([::1]:42344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgsYc-0006bO-Io for larch@yhetil.org; Sun, 22 Nov 2020 11:49:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgsYT-0006bF-Cc for guix-devel@gnu.org; Sun, 22 Nov 2020 11:49:37 -0500 Received: from 101b.relay.hey.com ([204.62.115.196]:39635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgsYQ-0004s9-DU for guix-devel@gnu.org; Sun, 22 Nov 2020 11:49:37 -0500 Received: from hey.com (bigip-vip-new.rw-ash-int.37signals.com [10.20.0.24]) by 101.relay.hey.com (Postfix) with ESMTP id BA1D69FE4C; Sun, 22 Nov 2020 16:49:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hey.com; s=heymail; t=1606063773; h=from:from: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; bh=TbpwlBnm5ePtQFF7AZM5zwWNSgoyL2mbv3WIGPEPt00=; b=HCMDp7uqjbj4yG1EiO8QGyxGp3d3lGbBBchvv+yOvMxCaw0xF8ozEGemA1yoEjtvVAZdIY UM08B0fshbXgszdYa04NTIJ/3Q64xd31xifRGmaji+L9QdPkZ3Phv5FK/6mKRIm9+fDNBG DkVVgEVvhFf4TWs41l0TUHspUNl6JUtOGgD+44j0IWCCzu1zjSV/LvmseamzD6L9h9FvJm KQR+KOjMI+Nq3Itk1cpXg++tZ9Gy661N4tC0dblVccPejCr7wTwJ37Gs6YU8KM3R0LG7zb Cxf/TOmj14sABSVzWUL1WPViNf07W3vmJXss2+4MXCOHri8FSa7sNIzs4T7wuA== Date: Sun, 22 Nov 2020 16:49:31 +0000 From: Ryan Prior To: =?UTF-8?B?THVkb3ZpYyBDb3VydMOocw==?= , Danny Milosavljevic Cc: Development of GNU Guix and the GNU System distribution Message-ID: <14d50891b7df08c53c2224c415f8cb28b0587888@hey.com> In-Reply-To: <20201122165841.348c802a@scratchpost.org> Subject: Re: /etc/passwd & co. in Docker images Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5fba969baa2ba_66f82dc8167f"; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=204.62.115.196; envelope-from=ryanprior@hey.com; helo=101b.relay.hey.com 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hey.com header.s=heymail header.b=HCMDp7uq; dmarc=pass (policy=quarantine) header.from=hey.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: tlSJEKa7rRPL ----==_mimepart_5fba969baa2ba_66f82dc8167f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On November 22, 2020, Danny Milosavljevic =0D wrote:=0D > Because the question is what to do if you invoke=0D >=0D > =C2=A0guix pack -f docker guix postgresql=0D > [snip]=0D > So I would suggest that=0D >=0D > =C2=A0guix system docker-image ...=0D >=0D > create /etc/passwd by merging the required user accounts like=0D > described=0D > above, but=0D >=0D > =C2=A0guix pack -f docker a b c=0D >=0D > really can't do that.=0D =0D This makes sense to me. If you pack just some packages, you get the=0D binaries/libs/whatever but no supporting structure. If you pack a=0D service or a system, you get the supporting structure to make it able to=0D= run.=0D Then it's a matter of documenting this appropriately and making it=0D discoverable. For example, something I want to do is set up an action in=0D= my CI that runs a Postgres db and a Rails service, then kicks off some=0D= tests. So how do I figure out what Guix command to run so that I can get=0D= Postgres and Rails into a Docker image, not just as bare minimal=0D binaries but as services that I can actually run?=0D ----==_mimepart_5fba969baa2ba_66f82dc8167f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =0D =0D =0D =0D =0D =0D =0D =0D =0D =0D
=0D
=0D
On November 22, 2020, Danny Milosavljevic <dannym@scratchpost.o= rg> wrote:
Because the question is what to do if you = invoke

=C2=A0guix pack -f docker guix postgresql
[snip]
So I= would suggest that

=C2=A0guix system docker-image ...

crea= te /etc/passwd by merging the required user accounts like described
ab= ove, but

=C2=A0guix pack -f docker a b c

really can't do th= at.

This makes sense to me. If you pack just some pa= ckages, you get the binaries/libs/whatever but no supporting structure. I= f you pack a service or a system, you get the supporting structure to mak= e it able to run.
Then it's a matter of documenting this appropriately= and making it discoverable. For example, something I want to do is set u= p an action in my CI that runs a Postgres db and a Rails service, then ki= cks off some tests. So how do I figure out what Guix command to run so th= at I can get Postgres and Rails into a Docker image, not just as bare min= imal binaries but as services that I can actually run?
=0D
=0D =0D =0D
=0D =0D =0D ----==_mimepart_5fba969baa2ba_66f82dc8167f--