offspot / imager-service

Create Kiwix Hotspot microSD cards online
https://imager.kiwix.org/
GNU General Public License v3.0
11 stars 6 forks source link

Connect worker via RPN to download.kiwix.org #252

Closed kelson42 closed 3 years ago

kelson42 commented 3 years ago

This should definitly speed-up download of data because:

rgaudin commented 3 years ago

Absolutely, although this task is mostly about setting up this network on scaleway and configuring the mirror server to answer on that second IP, probably using another dns entry.

On hotspot side, support for specifying mirror from the command line and rewriting catalog url to use that mirror.

On cardshop itself, supporting mirror change via env and passing down that to the creator's command line.

kelson42 commented 3 years ago

We need a new download.kiwix.org server allowing RPN.

kelson42 commented 3 years ago

@rgaudin I guess we can close the ticket now?

rgaudin commented 3 years ago

What was done:

10.91.56.88 rpn-download
10.91.233.86    rpn-demo

demo (Ubuntu 18.04)

Edited /etc/netplan/01-netcfg.yaml

network:
  version: 2
  renderer: networkd
  ethernets:
    enp1s0f0:
      dhcp4: yes
    enp1s0f1:
      dhcp4: yes
netplan try

download (Debian 9)

Edited /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eno1
iface eno1 inet dhcp

allow-hotplug eno2
iface eno2 inet dhcp
ifconfig ino2 up