From nobody Wed Jan 10 10:27:09 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 4T93rr1qw5z56YB1 for ; Wed, 10 Jan 2024 10:27:24 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T93rp6lhMz4Hjc for ; Wed, 10 Jan 2024 10:27:22 +0000 (UTC) (envelope-from aimass@yabarana.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yabarana-com.20230601.gappssmtp.com header.s=20230601 header.b=CLb576zy; dmarc=none; spf=pass (mx1.freebsd.org: domain of aimass@yabarana.com designates 2a00:1450:4864:20::534 as permitted sender) smtp.mailfrom=aimass@yabarana.com Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5572a9b3420so8410374a12.1 for ; Wed, 10 Jan 2024 02:27:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yabarana-com.20230601.gappssmtp.com; s=20230601; t=1704882441; x=1705487241; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=D5Sd9wo22RYsxe7BYTt8yhrcVZD/js+bmbgrwzk8WjE=; b=CLb576zyuDSjqF+tXQY2J18Zky/Bv3FslXhFEfZHefFrPLKmn8VQ/maA53G8hbXNiv 4b4c0nBJQo4G0x9xPySEIFs352fs5rNEIR6/k4LirgfkUO8mq+znO5T83G8+fzNfMfKz 6m6KCBg6yzkTWjxEbpAIIv0rBGl/7H659/pK4eeOi1eYxIfTpRnNxqQnVT63AnFHlb0e Ub1IxmTAlAtENj3tPd8o8BHJePHDZ9rq4CBDtTAm1Mm+NEwm7fKhg85oGrZF1093i6TO ePgDTeFdoUgwnI0MViNNrnrZzGXfeAEjlCcw+uSfi6ps1VCXtQTR4tKkPaD/1YvbaSw2 CvWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704882441; x=1705487241; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=D5Sd9wo22RYsxe7BYTt8yhrcVZD/js+bmbgrwzk8WjE=; b=kACC9gnFRD2aRZebkHI+kMBW1X973cPexx9i4rlf3WfksOu8AmjY6AE4YNm8Y2MvWS +uURoBIqyfIsVeTKhFJc2rFRkPtcWyI49w3BHdICNimaDVcQYMbruNGAnITHY/cFgT6L iQH2Je+HD0O2urRD4kV4A5bK0V54W+c4V8peI9t6gkCwZfopJwOs2h5vtRWfmJ+fgqiK 0peucgy6bpIKMNydPyOEFwTcmGJo6d+eHU3CSJYBaJEfpgVJd882nTKRFjeK6a4E9T+T 9m1F/B/Se/EN2qdQexCyqlxIKsP0iiBdLuFG6yWQj8Znrzbuozj1COmLJw/wX6X8Qdo9 Ma4g== X-Gm-Message-State: AOJu0YwkkT1JyV31ggxpckwTYXnStJAu12Qg+0fPwhvkxWiXvz+oCjQ2 WIjosNdzl1npSie4IUB0kDWP02gDn7QJE7FdtfBS5FUksXoV47D9ZYT7GSxH X-Google-Smtp-Source: AGHT+IFvyTthqWT15xQopJ+zsaDv3PvpJado90zLhuE0Fq0KpIkvlqQGb8OlLjNgjMS5wrWnSoDst/eOYx9cXkY0dfY= X-Received: by 2002:a17:907:1b14:b0:a2a:b340:7126 with SMTP id mp20-20020a1709071b1400b00a2ab3407126mr2498861ejc.6.1704882440803; Wed, 10 Jan 2024 02:27:20 -0800 (PST) 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 From: Alejandro Imass Date: Wed, 10 Jan 2024 11:27:09 +0100 Message-ID: Subject: Dockerfile to Bastille interpreter/translator To: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="00000000000044ac47060e94e05e" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-0.99)[-0.990]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[yabarana-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[yabarana.com]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::534:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; DKIM_TRACE(0.00)[yabarana-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4T93rp6lhMz4Hjc --00000000000044ac47060e94e05e Content-Type: text/plain; charset="UTF-8" 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. If you look at Dockerfile, they mostly follow the same pattern: 1 - package manager installs 2 - system commands 3 - package, inheritance 4 - repeat 5 - launch entrypoint The package manager AFAICT are only 3: alpine, debian, red hat The commands are almost translatable 1:1 to Bastille 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 ? 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. Any thoughts? Best, -- Alex --00000000000044ac47060e94e05e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I understand there's an ongoing effort to support Linu= x Docker images "natively" through amd64 translation layer to the= =C2=A0FBSD 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.=C2=A0

If you look at Dockerfile, they= mostly follow the same pattern:=C2=A0
1 - package manager instal= ls
2 - system commands
3 - package, inheritance
4 - repeat
5 - launch entrypoint

The = package manager AFAICT are only 3: alpine, debian, red hat
The co= mmands are almost translatable 1:1 to Bastille

So = my question is, has anybody thought or have started work on an Dockerfile i= nterpreter that can build native Bastille/ZFS "images" from a Doc= kerfile ?=C2=A0

I think most of the work would be = creating and maintaining the package names and their equivs which for the m= ost part will be very similar to FBSD ports.

Any t= houghts?

Best,

--=C2=A0
Alex





--00000000000044ac47060e94e05e--