From mboxrd@z Thu Jan 1 00:00:00 1970 From: dvn Subject: guix pack -f docker ... works! Date: Fri, 9 Feb 2018 14:17:58 +0100 Message-ID: <20180209131758.bz2mlnsthnkjwdla@kowloon> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5c7odrbya5bfvexf" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ek8ZA-0005fi-E9 for guix-devel@gnu.org; Fri, 09 Feb 2018 08:18:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ek8Z9-0004C3-Fu for guix-devel@gnu.org; Fri, 09 Feb 2018 08:18:12 -0500 Received: from q.meshwith.me ([2001:41d0:1:e20d::1]:38407) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ek8Z9-00048r-8m for guix-devel@gnu.org; Fri, 09 Feb 2018 08:18:11 -0500 Content-Disposition: inline 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --5c7odrbya5bfvexf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline I'm experimenting with `guix pack`, particularly with the docker format. I want to generate a tarball like so `guix pack -f docker bash figlet` -- and then after loading with docker, be able to run the packed commands. No $PATH is set in the container, so after digging around in the tarball, I decided to try something like this: `docker run -ti profile:lhavpi5ngs7infrh9b4nppriy4azgbwv /gnu/store/ars9lm9jk9hgdifg0gqvf1jrvz5mdg1j-bash-4.4.12/bin/bash` -- and that works! woo! This is much nicer than using an unverified Debian or Ubuntu layer in a docker container, just have a way of installing a few packages -- which is really all we need in containers 99% of the time. What have other people done in this direction? What are some ideas for setting up the $PATH in a nice way? cheers, Devan --5c7odrbya5bfvexf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEDMARp8PcbrR1Z5vJrAq6MYZqfnYFAlp9n4EACgkQrAq6MYZq fnZNhRAAxVfiAZddCOseYg0E/4GZCCl9/xY+1VbARwUGDPxMszOaw4I+Y0Jx133C BIvLjImiXTCNHHVLYQQU4Wb1pzb8UvAYR3aWHZ6SR7K3jBbrlMLZ077AyA0630aK QumqlDekKp/Tr3n1HSw3KXNCwjLDReh7+x3vyJDJWKx3wIyYw36ADW4oireLmMlH QqXB0AfzVpU8gwEJrACw4yZzV71PhMO/ehw47XOEa9IsOoAiSruzqELh2uOUtwPa kIUKzJQt4KOCjaYgXmCXl0MKIXt866THsKMEGjOk4HdP/vL4sKY/LLFa1rD+ekFF LYwzLavD3rUFvBVYAZu5ag+2+16+Qi1uaF0go6bKfL7USyN+Y73dmK5uLW2QKpSv QWjRAFSpCcvAeELAUwejN1W1akB9q1/ha7iqT2+DCQAT0SglsI5JsC1ElYXsQRgs 6AKRbD43Uo0TAP4pAXJeO1024OFru20+EqWrdxMtF3A/SKkrEumrDKfIGUWpjD1u TQC51UaClFJn5pdgEl75UFcJzS6/GFsPlyGdekyIWcTlZS1ZO+JHxWqF17KJs1I2 B2ewqBUcP/4vhWwfbt/I4lu6ce3cuB7Y4x3tMc2w9optTMW1N6SYa5SvIJ7PeYTh NaoknROb82VM+mzu/34LNxjzqQ4CFZANHZXFeNfyS8TiFx6xgpk= =BEzq -----END PGP SIGNATURE----- --5c7odrbya5bfvexf--