Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  +
[[Category:Infrastructure]]
 
= Cluster setup =
 
= Cluster setup =
   Line 63: Line 64:     
=== Docker in a container ===
 
=== Docker in a container ===
 +
'''Deprecated:''' We don't use this at it leads to weird bugs and there is no support for this configuration.
 +
 
When Docker is run inside a container, it needs a few tweaks:
 
When Docker is run inside a container, it needs a few tweaks:
   Line 78: Line 81:  
= Usages =
 
= Usages =
   −
== SSH connexion ==
+
== SSH connection ==
    
User accounts and SSH keys are directly created using data from github accounts.
 
User accounts and SSH keys are directly created using data from github accounts.
Line 105: Line 108:  
</pre>
 
</pre>
 
Then you can connect yourself with a simpler command:
 
Then you can connect yourself with a simpler command:
<pre>$ ssh robotoff</pre>
+
<pre>$ ssh robotoff</pre>Tip to copy files from the host to your machine:
 +
$ scp -i ~/.ssh/id_rsa -J CharlesNepote@ovh1.openfoodfacts.org CharlesNepote@10.1.0.200:/home/CharlesNepote/file.csv ./myfile.csv
 +
 +
$ # or simpler, if you have created a new Host in your ~/.ssh/config file:
 +
 +
$ scp host_name:/home/CharlesNepote/file.csv ./myfile.csv
    
== Container creation ==
 
== Container creation ==
Line 148: Line 156:  
* enter container 101 to setup the reverse proxy:
 
* enter container 101 to setup the reverse proxy:
 
** copy one of the existing config files (e.g. feedme.conf):
 
** copy one of the existing config files (e.g. feedme.conf):
*** root@proxy:/etc/nginx/conf.d# cp feedme.conf metabase.conf
+
*** root@proxy:/etc/nginx/conf.d# cp feedme.conf metabase.conf # don't forget the .conf at the end
 
** edit the config file
 
** edit the config file
 
*** replace the domain name, directories, and target container (and possibly port)
 
*** replace the domain name, directories, and target container (and possibly port)
Line 154: Line 162:  
** create the SSL certificate
 
** create the SSL certificate
 
*** root@proxy:/etc/nginx/conf.d# certbot --nginx
 
*** root@proxy:/etc/nginx/conf.d# certbot --nginx
 +
 +
== VM creation (QEMU) ==
 +
 +
* Login to the Proxmox web interface
 +
* Click on "Create VM"
 +
* General:
 +
** USE A VM ID > 200; eg. 201
 +
** Use a "Hostname" to let people know what it is about. Eg. "robotoff", "wiki", "proxy"...
 +
* System: Leave all system settings to default
 +
* Hard Disk: select disk size (leave other settings to default)
 +
* CPU:
 +
** Type: host
 +
** Leave default for other settings
 +
* Memory: select the RAM you want
 +
* Network: leave all settings to default
 +
Then install OS with noVNC in the proxmox UI.
 +
 +
Tips for Debian install:
 +
 +
* IP: 10.1.0.201/8 for the installation and then switch to /24 when install is done
 +
* Gateway IP: 10.0.0.1/8 for the installation and then switch to 10.0.0.1/24 when install is done
 +
* Filesystem: ext4
    
= See also, inspirations =
 
= See also, inspirations =
 
* [https://wiki.openstreetmap.org/wiki/FR:Serveurs_OpenStreetMap_France FR:Serveurs OpenStreetMap France] (french)
 
* [https://wiki.openstreetmap.org/wiki/FR:Serveurs_OpenStreetMap_France FR:Serveurs OpenStreetMap France] (french)
 
* [https://wiki.openstreetmap.org/wiki/FR:Serveurs/Utilisation_des_serveurs FR:Serveurs/Utilisation des serveurs] (french)
 
* [https://wiki.openstreetmap.org/wiki/FR:Serveurs/Utilisation_des_serveurs FR:Serveurs/Utilisation des serveurs] (french)

Navigation menu