Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

tech:vagrant:casosuso:3maquinas [03/05/2019 01:53] – creat matetech:vagrant:casosuso:3maquinas [16/11/2021 02:53] (actual) – suprimit mate
Línia 1: Línia 1:
-= 3 nodos vagrant + docker 
-la idea es desplegar un cluster swarm 
-<sxh ruby; title: 3 nodos vagrant> 
-Vagrant.configure("2") do |config| 
-   config.vm.define "nodo1" do |nodo1| 
-     nodo1.vm.box = "debian/jessie64" 
-     nodo1.vm.hostname = "nodo1" 
-#     nodo1.vm.network "public_network", bridge: "eth0" 
-     nodo1.vm.network "private_network", ip: "10.0.100.101" 
-     nodo1.vm.provision "shell", path: "install-docker.sh"                                                                                                                                                          
-     nodo1.vm.provider "virtualbox" do |vb| 
-       vb.name = "debian-swarm-nodo1" 
-       vb.memory = 1024 
-       vb.cpus = 1  
-       vb.linked_clone = true     
-     end  
-   end  
-   config.vm.define "nodo2" do |nodo2| 
-     nodo2.vm.box = "debian/jessie64" 
-     nodo2.vm.hostname = "nodo2" 
-     nodo2.vm.network "private_network", ip: "10.0.100.102" 
-     nodo2.vm.provider "virtualbox" do |vb| 
-       vb.name = "debian-swarm-nodo2" 
-       vb.memory = 1024 
-       vb.cpus = 1  
-       vb.linked_clone = true     
-     end  
-   end  
-   config.vm.define "nodo3" do |nodo3| 
-     nodo3.vm.box = "debian/jessie64" 
-     nodo3.vm.hostname = "nodo3" 
-     nodo3.vm.network "private_network", ip: "10.0.100.103" 
-     nodo3.vm.provider "virtualbox" do |vb| 
-       vb.name = "debian-swarm-nodo3" 
-       vb.memory = 1024 
-       vb.cpus = 1  
-       vb.linked_clone = true     
-     end  
-   end  
- end 
-</sxh> 
  
-<sxh shell; title: instalación básica> 
-#!/bin/bash 
-sudo apt-get remove -y docker docker-engine docker.io containerd runc 
-sudo apt-get update 
-sudo apt-get install -y \ 
-   apt-transport-https \ 
-   ca-certificates \ 
-   curl \ 
-   gnupg2 \ 
-   software-properties-common \ 
-   vim 
-curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - 
-sudo add-apt-repository \ 
-   "deb [arch=amd64] https://download.docker.com/linux/debian \ 
-   $(lsb_release -cs) \ 
-   stable" 
-sudo apt-get update 
-sudo apt-get install -y docker-ce                                                                                                                                                                                   
-sudo usermod -aG docker vagrant 
-#newgrp docker 
-#docker run hello-world 
-</sxh> 
  • tech/vagrant/casosuso/3maquinas.1556873587.txt.gz
  • Darrera modificació: 03/05/2019 01:53
  • per mate