diff --git a/README.md b/README.md index eb30d6f..a099a37 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ or the [Telegram group](https://t.me/+6UwIu9F4gZQxNjM0). **Hosting without a homeserver.** Anyone can help the swarm: **Host** in the menu sets up this machine or a server over SSH (Linux with systemd, x86 or ARM) to keep the newest publish and share it: any mix of the - container images (about 16 GB), the OS, Docker and Python packages + container images (about 12 GB), the OS, Docker and Python packages (3.7 GB), the playbook and roles in git (50 MB) and interzone and IPFS themselves (230 MB). An hourly timer on that machine fetches each new signed publish and lets the old one go; interzone doesn't need to keep diff --git a/internal/deploy/ipfs.go b/internal/deploy/ipfs.go index bdb4f94..eed97ab 100644 --- a/internal/deploy/ipfs.go +++ b/internal/deploy/ipfs.go @@ -184,7 +184,7 @@ func (r *Runner) ipfsHost(ctx context.Context) error { // followScript installs and starts ipfs-follow's service and hourly timer. // PartGB is roughly how big each part of a publish is, in GB. -var PartGB = map[string]float64{"oci": 16, "packages": 3.7, "git": 0.05, "bin": 0.23} +var PartGB = map[string]float64{"oci": 12.2, "packages": 3.7, "git": 0.05, "bin": 0.23} func followScript(parts string) string { return `set -e diff --git a/internal/ui/host.go b/internal/ui/host.go index 335d0b4..e97360e 100644 --- a/internal/ui/host.go +++ b/internal/ui/host.go @@ -67,7 +67,7 @@ type hostScreen struct { func newHostScreen() *hostScreen { f := newForm( - toggleField("part:oci", "Host the container images (about 16 GB)", true, + toggleField("part:oci", "Host the container images (about 12 GB)", true, "Host any mix of parts. All four let other servers set up from scratch through yours; "+ "new publishes replace the old one every hour."), toggleField("part:packages", "Host the OS, Docker and Python packages (about 3.7 GB)", true, ""), diff --git a/internal/ui/layout_test.go b/internal/ui/layout_test.go index 6ccd899..9b60eb7 100644 --- a/internal/ui/layout_test.go +++ b/internal/ui/layout_test.go @@ -103,7 +103,7 @@ func TestLayout(t *testing.T) { a.jump(a.index("Host")) hs := a.cur().(*hostScreen) hs.done, hs.log = true, []string{"installing IPFS v0.43.1 (from https://infamous.g0th.ir/.ipfs)", - "the server is downloading about 19 GB in the background and shares it as it arrives"} + "the server is downloading about 16.2 GB in the background and shares it as it arrives"} hs.statsFor = targetKey(hs.target()) hs.in, hs.out = []float64{0, 4e6, 9e6, 7e6, 10e6}, []float64{0, 0, 1e5, 3e5, 2e5} hs.stats = &deploy.HostStats{Installed: true, Active: true, Following: true, Parts: []string{"oci", "packages", "git", "bin"}, Peers: 3, diff --git a/internal/ui/testdata/layout/host-120x36.txt b/internal/ui/testdata/layout/host-120x36.txt index d4dc4a7..d5a1646 100644 --- a/internal/ui/testdata/layout/host-120x36.txt +++ b/internal/ui/testdata/layout/host-120x36.txt @@ -8,7 +8,7 @@ │ ││ on TCP port 4001 (open it in the firewall), and the swarm's members can see that it │ │ ▸ Test ││ holds Matrix software. │ │ ││ │ -│ ▾ Host ││ ▌ ● Host the container images (about 16 GB) on │ +│ ▾ Host ││ ▌ ● Host the container images (about 12 GB) on │ │ ▌ ✓ Host for IPFS ││ ▌ Host any mix of parts. All four let other servers set up from scratch through │ │ ││ ▌ yours; new publishes replace the old one every hour. │ │ ▾ Servers ││ │ @@ -17,7 +17,8 @@ │ ││ │ │ ││ ✓ hosting. It keeps going without interzone; enter sets it up again. │ │ ││ installing IPFS v0.43.1 (from https://infamous.g0th.ir/.ipfs) │ -│ ││ the server is downloading about 19 GB in the background and shares it as it arrives │ +│ ││ the server is downloading about 16.2 GB in the background and shares it as it │ +│ ││ arrives │ │ ││ │ │ ││ ◆ Hosting on this machine ──────────────────────────────────────────────────────────── │ │ ││ Status ● sharing · 3 peers · images, packages, git, programs │ @@ -28,8 +29,7 @@ │ ││ Swarm gave 290 MB (1200 blocks) · got 6.0 GB (25000 blocks) │ │ ││ Disk 6.0 GB used · 80.0 GB free │ │ ││ Updates updating now · the publish of 0000-00-00 00:00:00 UTC │ -│ ││ Last fetching bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi │ -│ ◫ auto (wide) ctrl+l ││ │ +│ ◫ auto (wide) ctrl+l ││ Last fetching bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi │ │ ◐ interzone ctrl+y ││ │ │ ◂ fold ctrl+b menu ││ │ ╰────────────────────────╯╰────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/internal/ui/testdata/layout/host-46x40.txt b/internal/ui/testdata/layout/host-46x40.txt index 6b82698..371c77d 100644 --- a/internal/ui/testdata/layout/host-46x40.txt +++ b/internal/ui/testdata/layout/host-46x40.txt @@ -9,7 +9,7 @@ firewall), and the swarm's members can see that it holds Matrix software. - ▌ ● Host the container images (about 16 + ▌ ● Host the container images (about 12 ▌ GB) ▌ on ▌ Host any mix of parts. All four let @@ -19,7 +19,7 @@ ✓ hosting. It keeps going without interzone; installing IPFS v0.43.1 (from https://infamous.g0th.ir/.ipfs) - the server is downloading about 19 GB in + the server is downloading about 16.2 GB in the background and shares it as it arrives ◆ Hosting on this machine ────────────────── diff --git a/internal/ui/testdata/layout/host-48x20.txt b/internal/ui/testdata/layout/host-48x20.txt index 3e26921..bbd60b3 100644 --- a/internal/ui/testdata/layout/host-48x20.txt +++ b/internal/ui/testdata/layout/host-48x20.txt @@ -8,7 +8,7 @@ swarm's members can see that it holds Matrix software. - ▌ ● Host the container images (about 16 GB) + ▌ ● Host the container images (about 12 GB) ▌ on ▌ Host any mix of parts. All four let other ▌ servers set up from scratch through