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-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) (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 2776A1F8C6 for ; Thu, 9 Sep 2021 21:39:38 +0000 (UTC) Received: by mail-qv1-xf32.google.com with SMTP id w8so2198039qvt.0 for ; Thu, 09 Sep 2021 14:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=bwgTKt0FGQHpdRqQV6fQjZwTy9MPQEZvvxwCcOXMHrI=; b=F+hBfq/p1IgPCR8p00K2KsFiem2iGrcC1Ju+ZSHrFXiZEzUbxgN9PzX3jZlApq4mr6 vb2BBuWL5YCuY2c7GGgRd6cgNm6wLvFyNgX2Vu/3q+m4VpDiU3M9dBNZuqNfeQWwwri2 7X/srUb6gSCXoZZ2z7XEWicmmBHJq54s3JZtQ= 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:subject:message-id:mime-version :content-disposition; bh=bwgTKt0FGQHpdRqQV6fQjZwTy9MPQEZvvxwCcOXMHrI=; b=Sl1x3NK41p5xZTLDu1Q7D3MvkNYv1UBwoNhH1Z0e3yYGf/GzKUQPzzh2+0RR1eQzk3 MISGDXBAjW5DBbqDC4FzWi0H6Uoh+5ixNt/nEFqEkcLmyyDqB8g6jbV1beMZwXKsa6hj 11JFKmztfZRujWSI8QyZVSyp7MzCaQsxM/BT3dccGVwy/OS+knLNeZ2S56la/ouhqa2L 9mlT2mW+L2/3aTMJ110/BY8Ab3K2Pitk/NGEyPY2KF7eHdSXqGrtP7MRpXdg3GHiytDO 06QolLGuyDk8HzVl+HpwHws331woYZ/Qv7ekyLFIjyKpQ1KolM05hX9Dosg1UjbAaBnz Ymog== X-Gm-Message-State: AOAM5302vcXv1un1jIKmcpg2Q1Ktg2zp4RXL+5ZYqR7ZgthdbvmSHqgg bMQfF3j6eqX79UxHE7g9/mOPMvSTgDQN/g== X-Google-Smtp-Source: ABdhPJwRp8IJFDeBaWuKTJ6B+j52aN85XTbNagq0CIOKl2EaxnERP+3gpL0noePFwQ9kesIhYjBreg== X-Received: by 2002:a0c:d44d:: with SMTP id r13mr5345046qvh.50.1631223576758; Thu, 09 Sep 2021 14:39:36 -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 w7sm1798449qtv.93.2021.09.09.14.39.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 14:39:36 -0700 (PDT) Date: Thu, 9 Sep 2021 17:39:35 -0400 From: Konstantin Ryabitsev To: meta@public-inbox.org Subject: Using lei with podman + toolbox Message-ID: <20210909213935.hh6dyuxaq63o72cc@meerkat.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline List-Id: Hi, all: 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. 1. Grab the dockerfile: https://gist.github.com/mricon/046ba7c8b03bd92176dbe83e04f2466c Right now, it's as below, though it may change in the future: --- start: public-inbox.dockerfile --- # Podman/Toolbox container for public-inbox FROM docker.io/library/debian LABEL com.github.containers.toolbox="true" \ com.github.debarshiray.toolbox="true" RUN apt-get update && \ apt-get -y install sudo libcap2-bin locales vim \ git liburi-perl libemail-mime-perl libplack-perl libtimedate-perl \ libdbd-sqlite3-perl libsearch-xapian-perl libnet-server-perl \ libinline-c-perl libemail-address-xs-perl libparse-recdescent-perl \ xapian-tools libencode-perl libdbi-perl liblinux-inotify2-perl \ libio-compress-perl curl libmail-imapclient-perl libsocket-msghdr-perl \ sqlite3 libgit2-dev make eatmydata man-db pkg-config # Change this to your locale, if you're not en_CA RUN echo "en_CA.UTF-8 UTF-8" >> /etc/locale.gen && \ locale-gen && \ sed -i -e 's/ ALL$/ NOPASSWD:ALL/' /etc/sudoers && \ touch /etc/localtime && \ echo VARIANT_ID=container >> /etc/os-release RUN git clone https://public-inbox.org /usr/local/public-inbox && \ cd /usr/local/public-inbox && \ perl Makefile.PL && \ make && \ make install && \ make clean CMD /bin/bash --- end: public-inbox.dockerfile --- 2. podman build -t public-inbox -f public-inbox.dockerfile 3. toolbox create --image localhost/public-inbox:latest lei 4. toolbox enter lei That should let you use "lei" commands right after entering the container. To update public-inbox, just run "git pull" in /usr/local/public-inbox and build it again. -K