le_site_de_caliban.be_dans_lxc
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| le_site_de_caliban.be_dans_lxc [2019/10/07 13:05] – [Installation de wordpress] simon | le_site_de_caliban.be_dans_lxc [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Le site de Caliban dans un container LXC ===== | ||
| - | Je gère l' | ||
| - | <code bash> | ||
| - | # lxc-create -t download -n caliban -- --dist debian --release buster --arch amd64 | ||
| - | |||
| - | # lxc-ls -f | ||
| - | NAME STATE | ||
| - | caliban STOPPED 0 | ||
| - | </ | ||
| - | |||
| - | On modifie la configuration pour que le conteneur ait une IP fixe : | ||
| - | <code bash> | ||
| - | # vim / | ||
| - | |||
| - | # cat / | ||
| - | # Template used to create this container: / | ||
| - | # Parameters passed to the template: --dist debian --release buster --arch amd64 | ||
| - | # Template script checksum (SHA-1): 273c51343604eb85f7e294c8da0a5eb769d648f3 | ||
| - | # For additional config options, please look at lxc.container.conf(5) | ||
| - | |||
| - | # Uncomment the following line to support nesting containers: | ||
| - | # | ||
| - | # (Be aware this has security implications) | ||
| - | |||
| - | |||
| - | # Distribution configuration | ||
| - | lxc.include = / | ||
| - | lxc.arch = linux64 | ||
| - | |||
| - | # Container specific configuration | ||
| - | lxc.rootfs.path = dir:/ | ||
| - | lxc.uts.name = caliban | ||
| - | |||
| - | # Network configuration | ||
| - | lxc.net.0.type = veth | ||
| - | lxc.net.0.link = lxcbr0 | ||
| - | lxc.net.0.flags = up | ||
| - | lxc.net.0.hwaddr = 00: | ||
| - | lxc.net.0.ipv4.address = 10.0.3.2/24 | ||
| - | </ | ||
| - | |||
| - | Plus qu'à démarrer, se connecter au conteneur et essayer : | ||
| - | <code bash> | ||
| - | # lxc-start caliban | ||
| - | |||
| - | # lxc-attach -n caliban | ||
| - | root@caliban:/# | ||
| - | </ | ||
| - | |||
| - | Création d'un utilisateur : | ||
| - | <code bash> | ||
| - | root@caliban:/# | ||
| - | </ | ||
| - | |||
| - | Locales : | ||
| - | <code bash> | ||
| - | root@caliban:/# | ||
| - | </ | ||
| - | |||
| - | ===== Programmes à installer ===== | ||
| - | ==== Base ==== | ||
| - | <code bash> | ||
| - | root@caliban:/ | ||
| - | </ | ||
| - | |||
| - | ==== MariaDB ==== | ||
| - | Prérequis : Faire un [[https:// | ||
| - | |||
| - | <code bash> | ||
| - | root@caliban:/ | ||
| - | |||
| - | root@caliban:/ | ||
| - | (...) | ||
| - | MariaDB [(none)]> | ||
| - | Query OK, 1 row affected (0.001 sec) | ||
| - | |||
| - | MariaDB [(none)]> | ||
| - | Query OK, 0 rows affected (0.002 sec) | ||
| - | |||
| - | MariaDB [(none)]> | ||
| - | Query OK, 0 rows affected (0.002 sec) | ||
| - | |||
| - | MariaDB [(none)]> | ||
| - | Bye | ||
| - | |||
| - | root@caliban:/ | ||
| - | </ | ||
| - | |||
| - | |||
| - | ==== Nginx ==== | ||
| - | <code bash> | ||
| - | root@caliban:/ | ||
| - | </ | ||
| - | ==== Installation de wordpress ==== | ||
| - | <code bash> | ||
| - | root@caliban:/ | ||
| - | |||
| - | root@caliban:/ | ||
| - | |||
| - | root@caliban:/ | ||
| - | |||
| - | root@caliban:/ | ||
| - | </ | ||
| - | ===== Redirection pour SSH ===== | ||
| - | * Idée : Faire une redirection avec [[redir]] pour pouvoir se connecter au container LXC directement et fournir un accès aux autres membres de Caliban. | ||
le_site_de_caliban.be_dans_lxc.1570453507.txt.gz · Dernière modification : (modification externe)
