From nobody Thu Jan 11 09:34:19 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T9fdF4F1Cz570wV for ; Thu, 11 Jan 2024 09:34:25 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T9fdF3mLHz4hgl; Thu, 11 Jan 2024 09:34:25 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704965665; 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:references:references; bh=D4gBUyn2DC6p3x0t4JAjn69wE/HGpVd20WAE0hWuGME=; b=Q10qR3rFIBacK9l82Vxr7AJ0ln6AOnRapDdBMQzohK+lZC8NoaXy4RK4Tl7ofTqn5vooox J+I0uXH94KpPuDqILzxEe9y3qKt1eaIe9Yi8rwkmPj0YkSSqmHifdtOh4GjQ5t0O9/OMKZ vhn72aqD02rt+nTI3YAKMDX3WNlJxXIgTdFNusRs2w94LAOjwidp5SOA6Yqui8uTvB4rvb 8AnYca94na3uERT7owj25EqD5Rl8Q0b1wJJ6Llu4vvRxMV+nbC0tMqotqrDk7gbV+vjuVQ puKbOrQcUB6p9PsvYIxM84J1q1uMjvlDqhhUED4Azr5qOHWYF6BlT61U3fg47w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704965665; 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:references:references; bh=D4gBUyn2DC6p3x0t4JAjn69wE/HGpVd20WAE0hWuGME=; b=eBYLPQEgUb1ZP+tEkE9+zQ3tIo+GnQFnpXS/gXJkgDfZwuqqqH0W3hegYJGRlmBu8vgSf5 3uhssc02d99yRMelRKFYLDJilKQD6w8G2v9uVLIBqbaQWzgEMnfurDjlCGn4mz8iw8/MPO o/SddTC43BfL0+giXds9NIypAfDsYXJn2BwFuyQ8gG/7BfT4LFZSv8Bsul8vUxOoux35lo 3YcgC1zkLNXppUEya7LtwD501q/ikN0vWp/7qj9tAhd8wkCnpZv5A9/hHpXwz051518vY8 QRa62whYA5YI1a78QKMomMQJF45a3nAPEwLca464LKT+fTV11rh2/+yQZmxJNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704965665; a=rsa-sha256; cv=none; b=tboJhMrczqy7AWNEttw8+qg5Qi02TarWnUbEmNjqkXLTVNsW2lmwaD/5qEhRMKFqRo3hBm U55lEikhpY0wGSggZS9JIUlLAcB1gEJERBxHTpxjxg1Ih2NWZSg663yUSDsAlJmT7QG7K4 /uWKggInArFHNFc8OOO63xtDYfngEzLCiNp669x1j2DTQmHZD4+VsUVvWj8AJ0iRtmdHEM cHrnPOgewyoY+2iuqk2oPrUgO4tsX2y0UuS2rbAUxu9gdozz4pEpYFTZ8KMtmapJ2jMdDb OubkksD2HjK/swYg42T1Sub8mwlz/xIREULk/5L1P7qchHPWxJfUuMHaNbkJ9w== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4T9fdD0bwxzFS7; Thu, 11 Jan 2024 09:34:23 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=us-ascii List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: Dockerfile to Bastille interpreter/translator From: Zhenlei Huang In-Reply-To: Date: Thu, 11 Jan 2024 17:34:19 +0800 Cc: FreeBSD virtualization , Doug Rabson Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Alejandro Imass X-Mailer: Apple Mail (2.3696.120.41.1.4) > On Jan 10, 2024, at 6:27 PM, Alejandro Imass = wrote: >=20 > I understand there's an ongoing effort to support Linux Docker images = "natively" through amd64 translation layer to the FBSD kernel. I think = that is a great endeavour but it got me thinking that perhaps there's an = alternative way to leverage the full power of FBSD and Bastille.=20 >=20 > If you look at Dockerfile, they mostly follow the same pattern:=20 > 1 - package manager installs > 2 - system commands > 3 - package, inheritance > 4 - repeat > 5 - launch entrypoint >=20 > The package manager AFAICT are only 3: alpine, debian, red hat > The commands are almost translatable 1:1 to Bastille >=20 > So my question is, has anybody thought or have started work on an = Dockerfile interpreter that can build native Bastille/ZFS "images" from = a Dockerfile ?=20 If I read you right, you may look at buildah / podman, and the runtime = runj [1] . Good luck :) 1. https://github.com/samuelkarp/runj >=20 > I think most of the work would be creating and maintaining the package = names and their equivs which for the most part will be very similar to = FBSD ports. >=20 > Any thoughts? >=20 > Best, >=20 > --=20 > Alex >=20 >=20 >=20 >=20 >=20 Best regards, Zhenlei