Sunday, September 03, 2023
dev@conference.yunohost.org
September
Mon Tue Wed Thu Fri Sat Sun
        1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 20
21
22
23
24
25
26
27
28
29
30
 
             

[09:47:48] <selfhoster1312> > [FAIL] It seems like you are trying to install YunoHost in docker or a weird container technology which probably is not supported by this install script (or YunoHost as a whole). If you know what you are doing, you can run this script with -f.
[09:47:49] <selfhoster1312> :)
[09:47:57] <selfhoster1312> trying to make yunohost docker/podman image
[09:49:47] <selfhoster1312> Solrac asking about LXC/virtualbox reminded me i wanted to make an OCI image ;)
[09:50:23] <Aleks (he/him/il/lui)> nope
[09:50:27] <Aleks (he/him/il/lui)> nope nope nope
[09:50:31] <Aleks (he/him/il/lui)> big nope
[09:50:48] <Aleks (he/him/il/lui)> say nope to cyberfrankensteinization
[09:52:34] <Aleks (he/him/il/lui)> You wouldnt steal a car
[09:52:42] <Aleks (he/him/il/lui)> You wouldnt dockerize a Linux Mint
[09:52:53] <Aleks (he/him/il/lui)> Dockerizing YunoHost is a crime
[10:03:44] <selfhoster1312> why wouldn't i steal a car? :(
[10:04:20] <selfhoster1312> i'm not a fan of docker indeed, but i heard podman is packaged for debian now so i thought i would give it a try :)
[10:06:36] <Aleks (he/him/il/lui)> the problem ain't docker itself, the problem is that docker/podman is meant to run a single process tree, not an entire ecosystem with nginx, postfix, yunohost-api and a whole bunch of other things
[10:07:12] <Aleks (he/him/il/lui)> not to mention the fact the those containers are supposed to be immutable/ephemeral with data stored on external volumes
[10:07:22] <selfhoster1312> that's not wrong, but also not exactly true... you can run a full system with systemd in docker :)
[10:07:55] <selfhoster1312> that's also not exactly true, you can persist data... but to be clear i'm not proposing OCI images as a yunohost installation method for everyday, just trying it **for test environments**
[10:08:47] <Aleks (he/him/il/lui)> jurrasicparkscientistsquote.jpg
[10:09:48] <selfhoster1312> ```
FROM debian:bullseye
ENV container docker
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y systemd systemd-sysv
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/lib/systemd/systemd"]
```
😅️
[13:38:41] <selfhoster1312> is there a reason yunohost package depends on the resolvconf package?
[13:39:31] <Aleks (he/him/il/lui)> the reason is that /etc/resolv.conf is a pain in the ass and `resolvconf` is the supposedly only sensible thing to have that is standardish
[13:39:35] <Aleks (he/him/il/lui)> and we want to force the usage of dnsmasq
[13:39:54] <Aleks (he/him/il/lui)> but even then resolvconf is not enough and /etc/resolv.conf gets hijacked by some other bullshit regularly
[13:40:19] <Aleks (he/him/il/lui)> ah, i know where that question comes from
[13:40:29] <Aleks (he/him/il/lui)> you're trying to install yunohost in docker, right ? ~.~
[13:40:45] <selfhoster1312> yes, and i'm learning that /etc/resolv.conf is in a weird quantum state in OCI containers x)
[13:41:02] <Aleks (he/him/il/lui)> yeah
[13:41:05] <Aleks (he/him/il/lui)> and so are a bunch of other things
[13:41:11] <selfhoster1312> you can write to it but some operations (eg. rename) indicate the file is busy so resolvconf package fails to install x)
[13:41:33] <Aleks (he/him/il/lui)> everytime it's the same story
[13:41:36] <selfhoster1312> haha i don't *absolutely* want it :)
[13:41:52] <Aleks (he/him/il/lui)> not only is it a bad idea, but it's a pain in the ass to even achieve, and then it's thrown away because .. it's a bad idea
[13:42:10] <Aleks (he/him/il/lui)> honestly i've seen this story about people absolutely wanting to install yunohost in docker like 2 or 3 times now
[13:43:10] <Aleks (he/him/il/lui)> like, pretty sure you'll have issues with yunohost-firewall who will want access to iptables, which requires some sort of kernel access
[13:43:19] <Aleks (he/him/il/lui)> and then a few services require namespacing capabilities
[13:44:00] <Aleks (he/him/il/lui)> and who knows what other fun surprises
[13:44:16] <selfhoster1312> well it's probably a bad idea but if yunohost can run in LXC/LXD no reason it technically can't run in docker/podman :)
[13:44:39] <selfhoster1312> i know what you think about it and even i somehow hate it which is why i have to try!!! :)
[13:44:49] <Aleks (he/him/il/lui)> oh yes people do manage to technically install it
[13:45:00] <Aleks (he/him/il/lui)> but it's unusable for anything in practice
[13:45:32] <selfhoster1312> *anything*? even as a throwable development environment?
[13:45:42] <selfhoster1312> (that's the only usecase i'm interested in)
[13:45:50] <Aleks (he/him/il/lui)> i mean technically speaking you can have your kitchen, your bedroom and your garden, all inside the bathroom
[13:46:10] <Aleks (he/him/il/lui)> > <selfhoster1312> *anything*? even as a throwable development environment?

yes, because you'll get plenty of funky side-effect because you are in docker
[13:46:49] <selfhoster1312> i mean i wouldn't test developing a VPN application with it, but for basic web server things i hope it should do the trick?!
[13:46:55] <selfhoster1312> worst case it's bad and i go back to LXC/LXD :D
[13:47:52] <Aleks (he/him/il/lui)> ¯\_(ツ)_/¯ sure and in the meantime you'll ask "why does YunoHost needs package X"
[15:35:42] <selfhoster1312> yea sry i'll try avoid stupid questions :)
[16:48:23] <selfhoster1312> i think i'll stop this OCI madness x)
[16:48:48] <selfhoster1312> unless someone explains how to stop docker/podman from messing with network settings and just use a veth/macvlan like LXC so politely does :D
[18:17:24] <Yunohost Git/Infra notifications> Failed to run the source auto-update for : kavita. Please run manually the `autoupdate_app_sources.py` script on these apps to debug what is happening! Debug log : http://paste.yunohost.org/raw/rigorujoge
[22:33:51] <Yunohost Git/Infra notifications> [yunohost] @zamentur edited [pull request #1706](https://github.com/YunoHost/yunohost/pull/1706): [enh] bind heritage in config panel
[22:34:17] <Yunohost Git/Infra notifications> [yunohost] @zamentur edited [pull request #1706](https://github.com/YunoHost/yunohost/pull/1706): [enh] bind heritage in config panel
[22:34:46] <Yunohost Git/Infra notifications> [yunohost] @zamentur labeled ready to merge on [pull request #1706](https://github.com/YunoHost/yunohost/pull/1706): [enh] bind heritage in config panel
[22:34:47] <Yunohost Git/Infra notifications> [yunohost] @zamentur labeled opinion needed on [pull request #1706](https://github.com/YunoHost/yunohost/pull/1706): [enh] bind heritage in config panel