$> sudo yum update -y
$> sudo yum install docker
$> sudo systemctl start docker
para que este disponible cuando se inicia la maquina
$> sudo systemctl enable docker
1. Install CentOS 7 - Minimal | |
2. yum groupinstall "X Window System" | |
3. yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts | |
4. unlink /etc/systemd/system/default.target | |
5. ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target | |
6. reboot |
for i in 1 2 3; do | |
docker-machine create -d virtualbox node-$i | |
done | |
eval $(docker-machine env node-1) | |
docker swarm init \ | |
--advertise-addr $(docker-machine ip node-1) | |
TOKEN=$(docker swarm join-token -q worker) |
for i in 1 2 3; do | |
docker-machine create -d virtualbox node-$i | |
done | |
eval $(docker-machine env node-1) | |
docker swarm init \ | |
--advertise-addr $(docker-machine ip node-1) | |
docker swarm join-token -q manager |
git clone https://github.com/vfarcic/cloud-provisioning.git | |
cd cloud-provisioning | |
scripts/dm-swarm.sh | |
eval $(docker-machine env swarm-1) | |
docker node ls |
# -*- coding: utf-8 -*- | |
import numpy as np | |
def predict(x,theta,theta_0=0): | |
''' | |
Funcion de prediccion | |
x un vector del training example | |
theta es el vector normal al plano |
# -*- coding: utf-8 -*- | |
import numpy as np | |
def predict(x,theta,theta_0=None): | |
''' | |
Funcion de prediccion | |
x un vector del training example | |
theta es el vector normal al plano |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Feb 23 15:07:01 2020 | |
@author: Mario Garcia ([email protected]) | |
""" | |
# libreria | |
import numpy as np |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Feb 29 13:28:49 2020 | |
@author: Mario Garcia ([email protected]) | |
""" | |
# SymPy |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Mar 20 19:05:12 2020 | |
@author: ohroot | |
""" | |
import sympy as sp | |
import numpy as np |