informatica:raspberry:cluster
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:raspberry:cluster [2023/09/18 19:58] – [Arranque de una aplicación automáticamente] jose | informatica:raspberry:cluster [2023/09/21 04:52] (current) – jose | ||
---|---|---|---|
Line 290: | Line 290: | ||
usermod -aG docker ruth | usermod -aG docker ruth | ||
- | Para que los docker resuelvan bien dnsmasq hay que añadir: | + | Para que los docker resuelvan bien dnsmasq |
/ | / | ||
< | < | ||
Line 298: | Line 298: | ||
" | " | ||
" | " | ||
- | ] | + | |
+ | " | ||
} | } | ||
</ | </ | ||
Line 304: | Line 305: | ||
- | ===== Ejemplos de imagenes | + | ===== Docker Registry ===== |
+ | Ponemos el puerto 80 porque el registry lo haremos inseguro para no tener que crear certificados: | ||
+ | docker pull registry: | ||
+ | docker run -d -p 80:5000 --restart=always --name registry registry: | ||
+ | Creamos una imagen, fichero Dockerfile, por ejemplo una simple con git: | ||
+ | < | ||
+ | FROM debian | ||
+ | RUN apt-get update && \ | ||
+ | apt-get install -y git | ||
+ | |||
+ | CMD bash | ||
+ | </ | ||
+ | Creamos la imagen: | ||
+ | docker build -t docker.raspi/ | ||
+ | |||
+ | La subimos a nuestro Registry: | ||
+ | docker push docker.raspi/ | ||
+ | Ahora si vamos a otro nodo, la podemos descargar: | ||
+ | docker run -ti docker.raspi/ | ||
+ | |||
+ | ===== Docker Swarm (deprecated) | ||
docker run -ti resin/ | docker run -ti resin/ | ||
cat / | cat / | ||
Line 583: | Line 604: | ||
wmctrl -i -a 0x01200004 | wmctrl -i -a 0x01200004 | ||
Ahora la podemos cerrar por ejemplo: | Ahora la podemos cerrar por ejemplo: | ||
- | xdotool keydown Alt key F4 keyup Alt | + | xdotool keydown Alt key F4 |
Vemos que se ha cerrado: | Vemos que se ha cerrado: | ||
wmctrl -l | wmctrl -l | ||
Line 616: | Line 637: | ||
https:// | https:// | ||
+ | |||
+ | ====== Botones ====== | ||
+ | https:// | ||
+ | |||
+ | Con el comando pinout muestra un mapa de los pins | ||
+ | |||
+ | Instalamos python paquetes necesarios: | ||
+ | apt-get install python3-pip | ||
+ | pip3 install RPi.GPIO | ||
+ |
informatica/raspberry/cluster.1695067116.txt.gz · Last modified: 2023/09/18 19:58 by jose