Browse Source

initial commit

master
ale 4 years ago
commit
0a91c01ccb
5 changed files with 100 additions and 0 deletions
  1. +10
    -0
      README.md
  2. +36
    -0
      taller/Parte0.md
  3. +23
    -0
      taller/Parte1.md
  4. +27
    -0
      taller/Parte2.md
  5. +4
    -0
      taller/Parte3.md

+ 10
- 0
README.md View File

@ -0,0 +1,10 @@
# Taller Docker 0x06 #HatThieves
## Docker en pequeñas dosis
- [Parte 0](taller/Parte0): Empezando con docker
- [Parte 1](taller/Parte1): Usuario
- [Parte 2](taller/Parte2): Servicio
- [Parte 3](taller/Parte3): Desarrollador
### by [ale](mailto:ale@hatthieves.es)

+ 36
- 0
taller/Parte0.md View File

@ -0,0 +1,36 @@
# Parte 0: Empezando con docker
## Instalar docker en debian
### 1. Instalar dependencias
```
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
```
### 2. Añadir clave repositorio
```
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
```
### 3. Añadir repositorio
```
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
```
### 4. Instalar docker
```
apt-get update && apt-get install docker-ce docker-ce-cli containerd.io
```
## Arrancar nuestro primer contenedor
```
docker run -ti --rm --name prueba debian:buster-slim /bin/bash
```

+ 23
- 0
taller/Parte1.md View File

@ -0,0 +1,23 @@
# Parte 1: Usuario
## Compartir X con [torbrowser](https://gitlab.com/manalejandro/tor-browser)
### Descarga repositorio
```
git clone https://gitlab.com/manalejandro/tor-browser
```
### Compilar imagen
```
docker build -t tb:latest tor-browser
```
### Instanciar contenedor
```
docker run -it --rm \
--name tor-browser \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e DISPLAY=unix$DISPLAY \
tb:latest
```

+ 27
- 0
taller/Parte2.md View File

@ -0,0 +1,27 @@
# Parte 2: Servicio
## Servidor [webdav](https://gitea.hatthieves.es/manalejandro/webdav) (NodeJS)
### Clonar repositorio
```
git clone https://gitea.hatthieves.es/manalejandro/webdav
```
### Instalar dependencias
```
cd webdav && npm i
```
### Configurar servicio (config.js)
```
editara archivo config.js
```
### Arrancar servicio
```
npm start
```
### Comprobar servicio y persistencia
- Abrir http://localhost:8080/dav con un cliente dav y subimos un archivo
- Se comprueba que existe el archivo en la carpeta compartida

+ 4
- 0
taller/Parte3.md View File

@ -0,0 +1,4 @@
# Parte 3: Desarrollador
## Montar con Docker un proyecto en desarrollo
## Habilitar persistencia

Loading…
Cancel
Save