From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (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) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id AA4811F8C6 for ; Fri, 10 Sep 2021 12:42:46 +0000 (UTC) Received: by mail-qt1-x836.google.com with SMTP id u4so1266333qta.2 for ; Fri, 10 Sep 2021 05:42:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=kesT/zUyfck8Fb3Qnr0lPuKsK0HyGFLKC6KR/zzaSDg=; b=Zn98EPwURQk+Dv7Zn9J6nwEis6oFFo8oEyLNH9BwhoTFvmBVIkxVE0DSdJ7GJY7dt6 VGOEsXEr46a8jbP5QFerPTzctQLutS0szDpe6SIAyXrPfrB3nXBcLfCNaU6ZlvyK7fzK jOB/0GAVNmYyxkVgwm9zz8WWEU/3blc4FiqB4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kesT/zUyfck8Fb3Qnr0lPuKsK0HyGFLKC6KR/zzaSDg=; b=yF5VXwpe9jVQBc/cZLYACjlF6yIATcVJw/DriCwnDrAhaqfhpCgAP62XRZA3YNFLvZ 1unES8YaElhIZPJulSU9mPYKlcu0DClSlcRMTP3vDVBuDsB9uLxnvFxHYXO58gUevpew IzxeUxpeLtIm7BTKaw3KhxaWSBJdEVrtsj8fq0qjxMOMN2H/+zht+Y0fiKHPGYDK8CNR gsi2L7/HlWhV8lMEAnQPwnkzDMjX3DBeFcvJlyayapz8TSa6HjmQRnIn2/RtlPf/HMIM JM0/S/9EDGm9z7lRFABTSyyLgc4HHlzWCsVs3Ek9J0W/osrdgM3lmtIAzmy85xmJP2Sq 3pAQ== X-Gm-Message-State: AOAM532i4Z+R1aiCuTdUH26m5vO8p1+ds/IaMZKO049FeIFcu6tPq9UH RHepRZq843ZaRnkiqfekQW5Npw== X-Google-Smtp-Source: ABdhPJy8F8YW2moiV7FJx0Otk5ZDryEl9SYmvUwPz8+btKGgGlKcFcr01/tEfipV7jsA8xvNB/YdAQ== X-Received: by 2002:ac8:45cf:: with SMTP id e15mr7870043qto.322.1631277765159; Fri, 10 Sep 2021 05:42:45 -0700 (PDT) Received: from meerkat.local (bras-base-mtrlpq5031w-grc-32-216-209-220-181.dsl.bell.ca. [216.209.220.181]) by smtp.gmail.com with ESMTPSA id s28sm3321959qkm.43.2021.09.10.05.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 05:42:44 -0700 (PDT) Date: Fri, 10 Sep 2021 08:42:42 -0400 From: Konstantin Ryabitsev To: Eric Wong Cc: meta@public-inbox.org Subject: Re: Using lei with podman + toolbox Message-ID: <20210910124242.rwjujckpd4arupr2@meerkat.local> References: <20210909213935.hh6dyuxaq63o72cc@meerkat.local> <20210909233614.GA27863@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210909233614.GA27863@dcvr> List-Id: On Thu, Sep 09, 2021 at 11:36:14PM +0000, Eric Wong wrote: > > These are my quickie instructions for how to use lei in a toolbox environment > > if you are running a distribution like Fedora and don't want to install a lot > > of perl dependencies into your main OS. > > Off the top of my head, I think Search::Xapian // Xapian.pm was > the main thing that was missing from CentOS 7. Does Fedora have > that? Seems to have it as perl-Search-Xapian, which provides Xapian.pm. > (disclaimer: I don't care for Docker, seems like a giant waste > of space and bandwidth compared to just using the distro) Well, this is for toolbox which uses podman, not docker. Toolbox is actually the preferred mechanism in Fedora for setting up quickie work environments, especially on something like Fedora Silverblue with its immutable root partition. I don't intend these instructions as the preferred mechanism for getting lei up and running, just to be clear. Eventually, it will be packaged for most distros -- but for now it's a convenient way to get the latest version on the platform most likely to be most tested (Debian). > > RUN apt-get update && \ > > apt-get -y install sudo libcap2-bin locales vim \ > > git liburi-perl libemail-mime-perl libplack-perl libtimedate-perl \ > > Email::MIME isn't used at all outside of tests (but it's widely packaged). > No idea why libcap2-bin and vim are explicit dependencies (any > editor will do). Don't need Plack for lei, either. Yeah, some of these were mostly for "make test" runs and others are adding basic packages to the container image to make it slightly more usable (I don't like nano or whatever is the default editor in the container image). > No need for Net::Server nor Parse::RecDescent for lei. I don't > use Net::Server at all outside of tests, since I use systemd. > > Email::Address::XS and TimeDate can be useful for messed up > messages, but low importance (I think they're widely packaged). > E:A:X and P:RD are required for -imapd but nothing else. > > Socket::Msghdr makes lei a teeny bit faster, but I don't think > it's worth using another distro or running a compiler to get > since Inline::C is already available in all distros. Everything > else should be in Fedora... > > > sqlite3 libgit2-dev make eatmydata man-db pkg-config > > eatmydata shouldn't be useful outside of development, and > libgit2+pkg-config isn't used by lei, yet > (it is for -httpd/-imapd/-nntpd) All noted -- I may be the one who packages things for Fedora at some point, so this is useful info. -K