-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 620524a
Showing
6 changed files
with
201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Pelado Nerd repo | ||
|
||
<img src="./assets/peladonerd.png" width="100"/> | ||
|
||
Este es un repo donde subo todo el código que uso para los videos de mi [canal en youtube](https://www.youtube.com/channel/UCrBzBOMcUVV8ryyAU_c6P5g). Voy a tratar de mantenerlo actualizado y con toda la documentación que pueda, pero no prometo nada. | ||
|
||
## Contribuciones | ||
|
||
Como siempre, cualquier contribución es bienvenida, simplemente forkeá este repo y haceme una PR. | ||
|
||
## Listado de videos que tienen archivos hasta ahora: | ||
|
||
Si el nombre del capítulo no tiene link, es porque no necesité postear ningún archivo. | ||
|
||
1. Docker | ||
1. Introducción a Docker/ [video](https://youtu.be/vjnOIE-CwMU) | ||
2. Imágenes / [video](https://youtu.be/a8sf54TCRN4) | ||
3. Volúmenes y puertos / [video](https://youtu.be/pliGG1M87W8) | ||
4. [Docker-compose](./docker/4) / [video](https://youtu.be/eoFxMaeB9H4) | ||
5. [Networking](./docker/5) / [video](https://youtu.be/BNHNMoSJz4g) | ||
2. Raspberry | ||
1. [Instalación de Docker en Raspberry y compartir archivos samba](./raspi/1) / [video](https://youtu.be/pliGG1M87W8) | ||
2. [Descargando torrents automáticamente](./raspi/2) / [video](https://youtu.be/pZArt1yEw_o) | ||
3. [Plex sobre Docker en Raspbery](https://github.com/pablokbs/plex-rpi) / [video](https://youtu.be/Y7sTa4zvKWQ) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: '3.1' | ||
|
||
services: | ||
|
||
wordpress: | ||
image: wordpress:php7.1-apache | ||
ports: | ||
- 8080:80 | ||
environment: | ||
WORDPRESS_DB_HOST: mysql | ||
WORDPRESS_DB_USER: root | ||
WORDPRESS_DB_PASSWORD: root | ||
WORDPRESS_DB_NAME: wordpress | ||
links: | ||
- mysql:mysql | ||
|
||
|
||
mysql: | ||
image: mysql:8.0.13 | ||
command: --default-authentication-plugin=mysql_native_password | ||
environment: | ||
MYSQL_DATABASE: wordpress | ||
MYSQL_ROOT_PASSWORD: root | ||
volumes: | ||
- ~/docker/mysql-data:/var/lib/mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: "2" | ||
|
||
services: | ||
|
||
samba: | ||
image: dperson/samba:rpi | ||
restart: always | ||
command: '-u "pi;password" -s "media;/media;yes;no" -s "downloads;/downloads;yes;no"' | ||
stdin_open: true | ||
tty: true | ||
ports: | ||
- 139:130 | ||
- 445:445 | ||
volumes: | ||
- /usr/share/zoneinfo/America/Argentina/Mendoza:/etc/localtime | ||
- /home/pi/media:/media | ||
- /home/pi/downloads:/downloads | ||
networks: | ||
lan: | ||
ipv4_address: 192.168.0.6 | ||
|
||
|
||
rtorrent: | ||
image: pablokbs/rutorrent-armhf | ||
ports: | ||
- 80:80 | ||
- 51413:51413 | ||
- 6881:6881/udp | ||
volumes: | ||
- /home/pi/torrents-config/rtorrent:/config/rtorrent | ||
- /home/pi/downloads:/downloads | ||
restart: always | ||
networks: | ||
lan: | ||
ipv4_address: 192.168.0.5 | ||
|
||
networks: | ||
lan: | ||
driver: macvlan | ||
driver_opts: | ||
parent: eth0 | ||
ipam: | ||
config: | ||
- subnet: "192.168.0.0/24" | ||
gateway: "192.168.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Pasos para instalar Docker en una Raspberry PI 2/3 corriendo raspbian | ||
Este es un instructivo para un tutorial en Youtube https://youtu.be/pliGG1M87W8 | ||
|
||
### 1. Descargar e instalar raspbian en tu micro SD | ||
* Descargar https://downloads.raspberrypi.org/raspbian_lite_latest | ||
* Descargar a instalar Etcher (para instalar en la SD) https://etcher.io/ | ||
* Instalar imagen en la SD | ||
|
||
### 2. Una vez que raspbian está instalado: | ||
* Cambiar password de usuario Pi (recomendado) | ||
|
||
### 3. Instalar paquetes necesarios | ||
|
||
``` | ||
sudo apt-get install -y \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg2 \ | ||
software-properties-common \ | ||
vim \ | ||
fail2ban \ | ||
ntfs-3g | ||
``` | ||
|
||
### 4. Instalar firmas GPG del repo de Docker | ||
|
||
``` | ||
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | ||
sudo apt-key fingerprint 0EBFCD88 | ||
``` | ||
|
||
### 5. Agregar repo de Docker | ||
|
||
``` | ||
echo "deb [arch=armhf] https://download.docker.com/linux/debian \ | ||
$(lsb_release -cs) stable" | \ | ||
sudo tee /etc/apt/sources.list.d/docker.list | ||
``` | ||
|
||
### 6. Instalar Docker | ||
|
||
``` | ||
sudo apt-get update && sudo apt-get install -y docker-ce docker-compose | ||
``` | ||
|
||
### 7. Agregar usuario al grupo docker y desloguearse y volverse a loguear | ||
|
||
``` | ||
sudo usermod -a -G docker kbs | ||
#(logout and login) | ||
``` | ||
|
||
### 8. Crear docker-compose | ||
``` | ||
version: "2" | ||
services: | ||
samba: | ||
image: dperson/samba:rpi | ||
restart: always | ||
command: '-u "pi;password" -s "media;/media;yes;no"' | ||
stdin_open: true | ||
tty: true | ||
ports: | ||
- 139:130 | ||
- 445:445 | ||
volumes: | ||
- /usr/share/zoneinfo/America/Argentina/Mendoza:/etc/localtime | ||
- /home/pi/media:/media | ||
``` | ||
|
||
|
||
### 9. Iniciar docker-compose | ||
``` | ||
docker-compose up -d | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: "2" | ||
|
||
services: | ||
|
||
samba: | ||
image: dperson/samba:rpi | ||
restart: always | ||
command: '-u "pi;password" -s "media;/media;yes;no" -s "downloads;/downloads;yes;no"' | ||
stdin_open: true | ||
tty: true | ||
ports: | ||
- 139:130 | ||
- 445:445 | ||
volumes: | ||
- /usr/share/zoneinfo/America/Argentina/Mendoza:/etc/localtime | ||
- /home/pi/media:/media | ||
- /home/pi/downloads:/downloads | ||
|
||
rtorrent: | ||
image: pablokbs/rutorrent-armhf | ||
ports: | ||
- 80:80 | ||
- 51413:51413 | ||
- 6881:6881/udp | ||
volumes: | ||
- /home/pi/torrents-config/rtorrent:/config/rtorrent | ||
- /home/pi/downloads:/downloads | ||
restart: always |