From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: About guix mirror build script Date: Tue, 10 Mar 2020 09:30:44 +0100 Message-ID: References: <75a8a31c.2954.170c24939b1.Coremail.tumashu@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38934) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBaIl-0003y5-QA for guix-devel@gnu.org; Tue, 10 Mar 2020 04:31:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBaIk-00025g-0F for guix-devel@gnu.org; Tue, 10 Mar 2020 04:31:47 -0400 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]:34730) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jBaIj-00023a-Sa for guix-devel@gnu.org; Tue, 10 Mar 2020 04:31:45 -0400 Received: by mail-qt1-x832.google.com with SMTP id 59so9059922qtb.1 for ; Tue, 10 Mar 2020 01:31:45 -0700 (PDT) In-Reply-To: <75a8a31c.2954.170c24939b1.Coremail.tumashu@163.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: tumashu Cc: guix Dear, On Tue, 10 Mar 2020 at 03:48, tumashu wrote: > In China , guix substitute download seem to be tooooooooooooo slow, nearly unuseable. About which kind of substitutes are you talking? 1. from where Guix pulls? (guix pull) 2. from where Guix fetches the binaries? (guix install) About 1. we had a discussion [1] on December about mirroring the official Git repo on Savannah. But AFAIK, nothing relevant has be done in this area. Feel free to propose a plan. :-) About 2. currently the binaries are mainly served by ci.guix.gnu.org located in Berlin. And an attempt to use CDN had been done a couple of month ago. You could be interested by this thread [2] and as you reported [3] the CDN experience was improving the situation in China. Well, the best is perhaps to time the issue, see this message [4]. [1] https://lists.gnu.org/archive/html/guix-devel/2019-12/msg00148.html [2] https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00135.html [3] https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00222.html [4] https://lists.gnu.org/archive/html/guix-devel/2018-12/msg00192.html On the long term, a patch [5] using IPFS needs some love (review, tests, etc.). [5] https://issues.guix.info/issue/33899 > this week, I have found that NIX channels has been built China mirror successful with the help of > 4 files: > > 1. https://github.com/tuna/tunasync-scripts/blob/master/nix.py > 2. https://github.com/tuna/tunasync-scripts/blob/master/nix-channels.py > 3. https://github.com/tuna/tunasync-scripts/blob/master/nixos-images.py > 4. https://github.com/tuna/tunasync-scripts/blob/master/dockerfiles/nix-channels/Dockerfile > > guix is very similar nix, so I want to know how to port 4 files to work with guix? > is it possible add similar tools to guix? Well, I have not dove into all these Python scripts to know exactly what they are doing. And I do not know what are the storage resources one needs to mirror ci.guix.gnu.org. But yes, if you have the resources (storage) to mirror the binaries susbtitute, you can try to adapt these scripts by replacing the URLs. All the best, simon