From 0eb919da976e5be9589c656c307d12c26a22ed6e Mon Sep 17 00:00:00 2001 From: Robert Martin-Legene <rlegene@gmail.com> Date: Tue, 6 Oct 2020 19:42:57 -0300 Subject: [PATCH] Poner las instrucciones de instalacion arriba --- README.md | 58 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 7899c97..98cd10a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,41 @@ # bfanodo -## Un nodo transaccional para BFA. +## Tu nodo en BFA. + +### Instalando Docker + +Si usas Debian empeza con: + +``` +apt-get install apt-transport-https ca-certificates curl gnupg-agent \ + software-properties-common +add-apt-repository \ + "deb [arch=amd64] https://download.docker.com/linux/debian \ + $(lsb_release -cs) stable" +apt update +apt install -y docker-ce docker-ce-cli containerd.io +docker run hello-world +echo 'GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"' >> /etc/default/grub +update-grub +reboot +``` + +Si no usas Debian, en [https://docs.docker.com/install/] hay instrucciones +para instalar Docker para varios sistemas (CentOS, Debian, Fedora, Ubuntu). + +Una vez instalado, podés correr varios dockers a la vez. Si ves el aviso +`WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.` +la solucion posible está en +[https://docs.docker.com/install/linux/linux-postinstall/#your-kernel-does-not-support-cgroup-swap-limit-capabilities] + +### Instalando tu bfanodo + +Una vez que tenes Docker instalado, podes instalar tu propio nodo de BFA: + +``` +$ wget https://gitlab.bfa.ar/docker/bfanodo/raw/master/start.sh +$ bash start.sh latest +``` ### Caracteristicas @@ -66,27 +101,6 @@ Las cuentas deben estar asociadas a las applicaciones que se conectan al nodo. Esto hace que el sistema sea más seguro, y que **cada applicacion necesite su propia cuenta**. -### Instalando Docker - -En [https://docs.docker.com/install/] hay instrucciones para instalar Docker para varios -sistemas (CentOS, Debian, Fedora, Ubuntu). - -Una vez instalado, podés correr varios dockers a la vez. Si ves el aviso `WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.` la solucion posible está en [https://docs.docker.com/install/linux/linux-postinstall/#your-kernel-does-not-support-cgroup-swap-limit-capabilities] - -Normalmente es suficiente (en Debian) con: -``` -$ echo 'GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"' >> /etc/default/grub -$ update-grub -$ reboot -``` - -### Instalando tu bfanodo - -``` -$ wget https://gitlab.bfa.ar/docker/bfanodo/raw/master/start.sh -$ ./start.sh -``` - ### Registros / logs Estos comandos pueden brindar mas informacion sobre tu bfanodo (y hasta darte un shell): -- GitLab