From owner-freebsd-questions@freebsd.org Thu Jan 17 10:01:34 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 99048148D172 for ; Thu, 17 Jan 2019 10:01:34 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.infracaninophile.co.uk", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3009E858F8 for ; Thu, 17 Jan 2019 10:01:34 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from leaf.local (unknown [88.202.132.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 9D0A01759E for ; Thu, 17 Jan 2019 10:01:31 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/9D0A01759E; dkim=none; dkim-atps=neutral Subject: Re: iocage specific 12.0-RELEASE -> STABLE/12 To: freebsd-questions@freebsd.org References: <85740e12-819d-ba05-74b3-51f318f52d5c@pinyon.org> From: Matthew Seaman Message-ID: <1f7b2afa-b48a-c9bd-baaa-32f01e8a6877@FreeBSD.org> Date: Thu, 17 Jan 2019 10:01:29 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <85740e12-819d-ba05-74b3-51f318f52d5c@pinyon.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2019 10:01:34 -0000 On 16/01/2019 20:41, Russell L. Carter wrote: > Greetings, > > While I wait on poudriere to build both firefox and chromium (32 > threads, and it will still take a while), so that I can install iocage > and dive into this newfangled technology called "jails" ;-), I have a > basic question. > > I had a flash in the brain (be nice, I'm a geezer and slow, it's only > taken me 20 years to figure this out) and realized I might be able to > use iocage jails to quickly spin up dev environments that are skeletal > compared to my desktop environment and so can minimize package version > collisions that happen when I try to port stuff to FreeBSD.  So I want > the FreeBSD version of the jail to match the commit of my stable/12 > host, including packages.  However the iocage docs don't seem to > mention this possibility.  Is this something people do?  I am guessing > I can nfs mount my (different) build box's /usr/src, /usr/obj, and my > package export directories into the jail, and use my source upgrade > scripts and pkg upgrade as usual, correct?  Are there any gotchas I > should be aware of?  Will the template mechanism make it easy to do > the configuration just once, or is iocage expecting a point RELEASE, > as suggested by the docs? I do almost exactly this, except I use a bunch of home-grown ansible code to create and configure jails. It's reasonably quick, but I don't tend to spin up and discard jails that frequently. I typically dedicate a ZFS heirarchy to each jail, and I install FreeBSD from my build tree by setting DESTDIR: /usr/src:# make installworld DESTDIR=/jails/somejail etc. etc. Then I have my own pkg repo behind a webserver for handling installed software. Works pretty well. Of course, that's the other big use of jails in the way that you describe: poudriere will spin up some number of jails for build environments, and these are very much use-and-discard jails. > I got to this point pondering how to install gnutls with guile > bindings, so that I can see if I can get guix working on stable/12. Yes -- creating youself a clean environment to build and test without needing to worry about conflicts with all sort of other software you have installed is definitely a job for jails. Cheers, Matthew