Table des matières

Un conteneur LXC pour Duniter

Objectif : Rassembler dans un conteneur LXC un nœud duniter et d'éventuels outils annexes ( clients Césium et silkaj ? g1-monit ? Scripts de monitoring ? )

# lxc-create -t download -n duniter -- --dist debian --release buster --arch amd64
 
# cat /var/lib/lxc/duniter/config 
lxc.start.auto = 1
 
# Distribution configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.arch = linux64
 
# Container specific configuration
lxc.rootfs.path = dir:/var/lib/lxc/duniter/rootfs
lxc.uts.name = duniter
 
# Network configuration
lxc.net.0.type = veth
lxc.net.0.link = lxcbr0
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:16:3e:9e:94:00
 
# cat /etc/lxc/dnsmasq.conf 
(...)
dhcp-host=duniter,10.0.3.5
 
# systemctl restart lxc-net
 
# lxc-start duniter
 
# lxc-ls -f
NAME       STATE   AUTOSTART GROUPS IPV4     IPV6 UNPRIVILEGED 
duniter    RUNNING 1         -      10.0.3.5 -    false        

Installation de Duniter

Sources :

Reverse Proxy Nginx

Sources :