SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Proyectos De Infraestructura
De Tecnologías De Información
Tema: 4. Gestión Técnica de Infraestructura
PhD(c). Luis Fernando Aguas Bucheli
+593 984015184
@Aguaszoft
Laguas@uisrael.edu.ec
Siempre se puede ser mejor.
Tiger Woods
ODS
● 4.3 De aquí a 2030, asegurar el
acceso igualitario de todos los
hombres y las mujeres a una
formación técnica, profesional
y superior de calidad, incluida
la enseñanza universitaria
META
Objetivo
• Formula adecuadamente
proyectos de Tecnologías de
Información de tal forma
quesea posible realizar el
seguimiento eficaz garantizando
el desarrollo y finalización
exitosa de un proyecto
reduciendo los factores
deriesgo
● 4.1 Docker, docker-compose
Contenido
4.1 Docker, docker-compose
¿Que es Docker?
● Plataforma abierta para crear y ejecutar aplicaciones
distribuidas.
● Destinado a desarrolladores y administradores.
● Construcción basada en componentes separados.
● Ejecución en distintas plataformas (servers, desktops,
laptops…) con una misma compilación.
¿En que esta basado? (requisitos)
● Sistemas 64 bits
● Linux kernel 3.8+
● GoLang
● Linux container (LXC)
¿Cómo funciona? (frente a VMs)
● Máquinas virtuales
o SO Anfitrión
o Hipervisor
o SO Invitado
o Librerías
o Aplicación
¿Cómo funciona? (frente a VMs)
● Docker
o SO Anfitrión
o Docker
o Librerías
o Aplicación
¿Cómo funciona? (frente a VMs)
¿Por qué para desarrolladores?
● Sin problemas de dependencias.
● Cualquier lenguaje de programación.
● Aplicaciones portables multiplataforma.
● Control de versiones.
● Repositorios públicos o privados.
● Compilaciones automatizadas.
¿Por qué para administradores?
● Abstracción del SO anfitrión.
● Escalabilidad rápida.
● Seguridad añadida.
● Máximo rendimiento.
● Menor tamaño de los contenedores.
● Mayor aprovechamiento del hardware.
● Funciona dentro de máquinas virtuales.
Ventajas
● Docker es código abierto
o https://github.com/docker/docker
● Sistema enfocado a aplicaciones, no a máquinas.
● Reutilización de compilaciones previas.
● Ecosistema en crecimiento (Docker Hub,
StackOverFlow…).
● Aislamiento de recursos (sistema de archivos, red,
ram…).
¡Aún más!
● Linux container daemon (LXD)
o Hecho por Ubuntu/Canonical.
o Hipervisor para contenedores.
o Migración en caliente entre distintas máquinas.
o Seguridad a nivel de hardware.
o Gestión avanzada de redes.
o API REST limpia y extensible.
¡Aún más!
● Kubernetes
o Hecho por Google.
o Gestor de clústeres de contenedores.
o API de bajo nivel.
o Mecanismos de self-healing:
 Reinicios automáticos.
 Programación de eventos.
 Clonación/réplicas.
Demostraciones
● Ubuntu 14.10
● LAMP stack
● Wordpress
● Cloud 9 IDE
● Fedora Desktop
● docker run -t -i ubuntu:utopic
● docker run -p 80:80 -p 3306:3306 tutum/lamp
● curl http://localhost/
● docker run -d -p 80:80 tutum/wordpress
● curl http://localhost/
● docker run -d -p 3131:3131 -v
/tmp:/workspace alanct/cloud9
● docker run -d -p 3389:3389 jumanjiman/xrdp
● foo:bar
docker pull alanct/cloud9
Paso 1.1 - Cómo instalar Docker
# curl -sSL https://get.docker.com/ubuntu/ | sh
Get:29 http://security.ubuntu.com trusty-security/multiverse Sources [698 B]
Get:30 http://security.ubuntu.com trusty-security/main i386 Packages [147 kB]
Get:31 http://security.ubuntu.com trusty-security/restricted i386 Packages [14 B]
Get:32 http://security.ubuntu.com trusty-security/universe i386 Packages [51.2 kB]
Get:33 http://security.ubuntu.com trusty-security/multiverse i386 Packages [1,401 B]
Get:34 http://security.ubuntu.com trusty-security/main Translation-en [75.0 kB]
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Get:35 http://security.ubuntu.com trusty-security/universe Translation-en [30.5 kB]
Fetched 1,700 kB in 5s (311 kB/s)
Reading package lists... Done
...
docker pull alanct/cloud9
Paso 1.2 - Cómo acceder a Docker
# docker
Usage: Docker [OPTIONS] COMMAND [arg...]
-H="127.0.0.1:4243": Host:port to bind/connect to
A self-sufficient runtime for linux containers.
Commands:
attach Attach to a running container
build Build a container from a Dockerfile
commit Create a new image from a container's changes
diff Inspect changes on a container's filesystem
export Stream the contents of a container as a tar archive
history Show the history of an image
images List images
import Create a new filesystem image from the contents of a tarball
info Display system-wide information
insert Insert a file in an image
inspect Return low-level information on a container
...
docker pull alanct/cloud9
Paso 2.1 - Buscar imágenes
# docker search tutorial
Found 1 results matching your query ("tutorial")
NAME DESCRIPTION
learn/tutorial An image for the interactive tutorial
docker pull alanct/cloud9
Paso 2.2 - Descargar imágenes
# docker pull learn/tutorial
Pulling repository learn/tutorial from https://index.docker.io/v1
Pulling image 8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c (precise)
from ubuntu
Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc (12.10)
from ubuntu
Pulling image 27cf784147099545 () from tutorial
docker pull alanct/cloud9
Paso 3 - Ejecutar comandos
# docker run learn/tutorial echo “Hola mundo”
Hola mundo
docker pull alanct/cloud9
Paso 4 - Instalar paquetes
# docker run learn/tutorial apt-get install -y ping
Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
iputils-ping
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.1 kB of archives.
After this operation, 143 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main iputils-ping amd64 3:20101006-
1ubuntu1 [56.1 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 56.1 kB in 1s (50.3 kB/s)
Selecting previously unselected package iputils-ping.
(Reading database ... 7545 files and directories currently installed.)
Unpacking iputils-ping (from .../iputils-ping_3%3a20101006-1ubuntu1_amd64.deb) ...
Setting up iputils-ping (3:20101006-1ubuntu1) ...
docker pull alanct/cloud9
Paso 4 - Instalar paquetes
# docker run learn/tutorial apt-get install -y ping
Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
iputils-ping
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.1 kB of archives.
After this operation, 143 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main iputils-ping amd64 3:20101006-
1ubuntu1 [56.1 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 56.1 kB in 1s (50.3 kB/s)
Selecting previously unselected package iputils-ping.
(Reading database ... 7545 files and directories currently installed.)
Unpacking iputils-ping (from .../iputils-ping_3%3a20101006-1ubuntu1_amd64.deb) ...
Setting up iputils-ping (3:20101006-1ubuntu1) ...
docker pull alanct/cloud9
Paso 5 - Guardar cambios
# docker ps
ID IMAGE COMMAND CREATED STATUS
# docker ps -a
ID IMAGE COMMAND CREATED STATUS
6982a9948422 ubuntu:12.04 apt-get install ping 1 minute ago Exit 0
# docker commit 698 learn/ping
effb66b31edb
docker pull alanct/cloud9
Paso 6 - Ejecutar la nueva imagen
# docker run learn/ping ping inf.uva.es
PING inf.uva.es (157.88.109.216) 56(84) bytes of data.
64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=1 ttl=55 time=55.1 ms
64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=2 ttl=55 time=53.7 ms
64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=3 ttl=55 time=55.4 ms
64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=4 ttl=55 time=54.6 ms
64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=5 ttl=55 time=55.1 ms
64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=6 ttl=55 time=55.6 ms
64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=7 ttl=55 time=53.6 ms
64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=8 ttl=55 time=56.2 ms
64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=9 ttl=55 time=53.2 ms
...
docker pull alanct/cloud9
Paso 7 - Inspeccionar el contenedor
# docker inspect efe
[2014/11/06 00:00:01 GET /v1.3/containers/efef/json
{
"ID": "efefdc74a1d5900d7d7a74740e5261c09f5f42b6dae58ded6a1fde1cde7f4ac5",
"Created": "2014-11-06T00:00:01.417119736Z",
"Path": "ping",
"Args": [
"inf.uva.es"
],
"Config": {
"Hostname": "efefdc74a1d5",
"User": "",
"Memory": 0,
"MemorySwap": 0,
"CpuShares": 0,
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"PortSpecs": null,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
...
docker pull alanct/cloud9
Paso 8 - Dockerfile
# nano Dockerfile
FROM ubuntu:latest
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install git python
RUN echo “Hola mundo” >> index.html
EXPOSE 80
CMD [“python”, “-m”, “SimpleHTTPServer”, “80”]
# docker build -t learn/webserver .
...
# docker run -P learn/webserver
Serving HTTP on 0.0.0.0 port 80 ...
docker pull alanct/cloud9
Paso 9.1 - Guardar/cargar imágenes
# docker save learn/ping > /tmp/imagen.tar
...
# docker load < /tmp/imagen.tar
...
docker pull alanct/cloud9
Paso 9.2 - Exportar/importar conten.
# docker ps -a
ID IMAGE COMMAND CREATED STATUS
6982a9948422 ubuntu:12.04 apt-get install ping 1 minute ago Exit 0
# docker export 698 > /tmp/contenedor.tar
...
# cat /tmp/contenedor.tar | docker import - learn/ping-export:latest
...
Gracias
Responsabilidad con pensamiento positivo

Weitere ähnliche Inhalte

Ähnlich wie PDIDTI-S7.pptx

Usando Django con Docker
Usando Django con DockerUsando Django con Docker
Usando Django con DockerErnesto Crespo
 
Cuckoosandbox
CuckoosandboxCuckoosandbox
CuckoosandboxTensor
 
Cuckoo sandbox
Cuckoo sandboxCuckoo sandbox
Cuckoo sandboxTensor
 
Usando Docker con sistemas Asterisk
Usando Docker con sistemas AsteriskUsando Docker con sistemas Asterisk
Usando Docker con sistemas AsteriskElio Rojano
 
Usando Docker con sistemas Asterisk
Usando Docker con sistemas AsteriskUsando Docker con sistemas Asterisk
Usando Docker con sistemas AsteriskVOIP2DAY
 
WordPress, Nginx, Ghost y Telegram con Docker - I Meetup Docker Córdoba - Quaip
WordPress, Nginx, Ghost y Telegram con Docker - I Meetup Docker Córdoba - QuaipWordPress, Nginx, Ghost y Telegram con Docker - I Meetup Docker Córdoba - Quaip
WordPress, Nginx, Ghost y Telegram con Docker - I Meetup Docker Córdoba - Quaipquaip
 
MythTV Mediacenter on an IGEPv2
MythTV Mediacenter on an IGEPv2 MythTV Mediacenter on an IGEPv2
MythTV Mediacenter on an IGEPv2 marcoita
 
FROM lost to the Docker 2020
FROM lost to the Docker 2020FROM lost to the Docker 2020
FROM lost to the Docker 2020BelnGonzlezGarca1
 
Docker: la revolución en virtualización
Docker: la revolución en virtualizaciónDocker: la revolución en virtualización
Docker: la revolución en virtualizaciónMarcelo Ochoa
 
Curso Kubernetes CodeURJC
Curso Kubernetes CodeURJCCurso Kubernetes CodeURJC
Curso Kubernetes CodeURJCMicael Gallego
 
Conferencia Innovación en Técnicas de Ethical Hacking
Conferencia Innovación en Técnicas de Ethical HackingConferencia Innovación en Técnicas de Ethical Hacking
Conferencia Innovación en Técnicas de Ethical HackingHacking Bolivia
 
Servidor PXE de Instalaciones GNU/Linux
Servidor PXE de Instalaciones GNU/LinuxServidor PXE de Instalaciones GNU/Linux
Servidor PXE de Instalaciones GNU/Linuxfraterneo GNU/Linux
 
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]RootedCON
 
Presentación nubes de contenedores con docker swarm
Presentación nubes de contenedores con docker swarmPresentación nubes de contenedores con docker swarm
Presentación nubes de contenedores con docker swarmAlejandro Escanero Blanco
 

Ähnlich wie PDIDTI-S7.pptx (20)

Usando Django con Docker
Usando Django con DockerUsando Django con Docker
Usando Django con Docker
 
Cuckoosandbox
CuckoosandboxCuckoosandbox
Cuckoosandbox
 
Docker images
Docker imagesDocker images
Docker images
 
Cuckoo sandbox
Cuckoo sandboxCuckoo sandbox
Cuckoo sandbox
 
Meetup V.E.No.M. y docker
Meetup V.E.No.M. y dockerMeetup V.E.No.M. y docker
Meetup V.E.No.M. y docker
 
Usando Docker con sistemas Asterisk
Usando Docker con sistemas AsteriskUsando Docker con sistemas Asterisk
Usando Docker con sistemas Asterisk
 
Usando Docker con sistemas Asterisk
Usando Docker con sistemas AsteriskUsando Docker con sistemas Asterisk
Usando Docker con sistemas Asterisk
 
Primeros pasos con Docker
Primeros pasos con DockerPrimeros pasos con Docker
Primeros pasos con Docker
 
FROM lost to the docker
FROM lost to the dockerFROM lost to the docker
FROM lost to the docker
 
WordPress, Nginx, Ghost y Telegram con Docker - I Meetup Docker Córdoba - Quaip
WordPress, Nginx, Ghost y Telegram con Docker - I Meetup Docker Córdoba - QuaipWordPress, Nginx, Ghost y Telegram con Docker - I Meetup Docker Córdoba - Quaip
WordPress, Nginx, Ghost y Telegram con Docker - I Meetup Docker Córdoba - Quaip
 
MythTV Mediacenter on an IGEPv2
MythTV Mediacenter on an IGEPv2 MythTV Mediacenter on an IGEPv2
MythTV Mediacenter on an IGEPv2
 
FROM lost to the Docker 2020
FROM lost to the Docker 2020FROM lost to the Docker 2020
FROM lost to the Docker 2020
 
Docker desde cero
Docker desde ceroDocker desde cero
Docker desde cero
 
Taller girona
Taller gironaTaller girona
Taller girona
 
Docker: la revolución en virtualización
Docker: la revolución en virtualizaciónDocker: la revolución en virtualización
Docker: la revolución en virtualización
 
Curso Kubernetes CodeURJC
Curso Kubernetes CodeURJCCurso Kubernetes CodeURJC
Curso Kubernetes CodeURJC
 
Conferencia Innovación en Técnicas de Ethical Hacking
Conferencia Innovación en Técnicas de Ethical HackingConferencia Innovación en Técnicas de Ethical Hacking
Conferencia Innovación en Técnicas de Ethical Hacking
 
Servidor PXE de Instalaciones GNU/Linux
Servidor PXE de Instalaciones GNU/LinuxServidor PXE de Instalaciones GNU/Linux
Servidor PXE de Instalaciones GNU/Linux
 
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
David Meléndez Cano - Trash Robotic Router Platform (TRRP) [Rooted CON 2013]
 
Presentación nubes de contenedores con docker swarm
Presentación nubes de contenedores con docker swarmPresentación nubes de contenedores con docker swarm
Presentación nubes de contenedores con docker swarm
 

Mehr von Luis Fernando Aguas Bucheli (20)

EFC-ISW-Luis Fernando Aguas.pptx
EFC-ISW-Luis Fernando Aguas.pptxEFC-ISW-Luis Fernando Aguas.pptx
EFC-ISW-Luis Fernando Aguas.pptx
 
P-S2.pptx
P-S2.pptxP-S2.pptx
P-S2.pptx
 
EBTS-S1.pptx
EBTS-S1.pptxEBTS-S1.pptx
EBTS-S1.pptx
 
P-S3.pptx
P-S3.pptxP-S3.pptx
P-S3.pptx
 
EBTS-S4.pptx
EBTS-S4.pptxEBTS-S4.pptx
EBTS-S4.pptx
 
P-S4.pptx
P-S4.pptxP-S4.pptx
P-S4.pptx
 
P-S1.pptx
P-S1.pptxP-S1.pptx
P-S1.pptx
 
EBTS-S3.pptx
EBTS-S3.pptxEBTS-S3.pptx
EBTS-S3.pptx
 
EBTS-S2.pptx
EBTS-S2.pptxEBTS-S2.pptx
EBTS-S2.pptx
 
PDIDTI-S4.pptx
PDIDTI-S4.pptxPDIDTI-S4.pptx
PDIDTI-S4.pptx
 
PDIDTI-S2.pptx
PDIDTI-S2.pptxPDIDTI-S2.pptx
PDIDTI-S2.pptx
 
PDIDTI-S1.pptx
PDIDTI-S1.pptxPDIDTI-S1.pptx
PDIDTI-S1.pptx
 
PDIDTI-S8.pptx
PDIDTI-S8.pptxPDIDTI-S8.pptx
PDIDTI-S8.pptx
 
PDIDTI-S6.pptx
PDIDTI-S6.pptxPDIDTI-S6.pptx
PDIDTI-S6.pptx
 
PDIDTI-S5.pptx
PDIDTI-S5.pptxPDIDTI-S5.pptx
PDIDTI-S5.pptx
 
PDIDTI-S3.pptx
PDIDTI-S3.pptxPDIDTI-S3.pptx
PDIDTI-S3.pptx
 
TIC-S4.pptx
TIC-S4.pptxTIC-S4.pptx
TIC-S4.pptx
 
TIC-S3.pptx
TIC-S3.pptxTIC-S3.pptx
TIC-S3.pptx
 
TIC-S2.pptx
TIC-S2.pptxTIC-S2.pptx
TIC-S2.pptx
 
TIC-S5.pptx
TIC-S5.pptxTIC-S5.pptx
TIC-S5.pptx
 

Kürzlich hochgeladen

Sistema Séptico Domiciliario para viviendas rurales
Sistema Séptico Domiciliario para viviendas ruralesSistema Séptico Domiciliario para viviendas rurales
Sistema Séptico Domiciliario para viviendas ruralesrberinald
 
EJERCICIOS DE PROPIEDADES INDICES DE MECÁNICA DE SUELOS
EJERCICIOS DE PROPIEDADES INDICES DE MECÁNICA DE SUELOSEJERCICIOS DE PROPIEDADES INDICES DE MECÁNICA DE SUELOS
EJERCICIOS DE PROPIEDADES INDICES DE MECÁNICA DE SUELOSLuisLopez273366
 
GeoS33333333333333333333333333333333.pdf
GeoS33333333333333333333333333333333.pdfGeoS33333333333333333333333333333333.pdf
GeoS33333333333333333333333333333333.pdffredyflores58
 
FOTOCELDAS Y LOS DIFERENTES TIPOS QUE EXISTEN.pdf
FOTOCELDAS Y LOS DIFERENTES TIPOS QUE EXISTEN.pdfFOTOCELDAS Y LOS DIFERENTES TIPOS QUE EXISTEN.pdf
FOTOCELDAS Y LOS DIFERENTES TIPOS QUE EXISTEN.pdfDanielAlejandroAguir2
 
04-circuitos-comparadores de amplificadores operacionales.pptx
04-circuitos-comparadores de amplificadores operacionales.pptx04-circuitos-comparadores de amplificadores operacionales.pptx
04-circuitos-comparadores de amplificadores operacionales.pptxHenryApaza12
 
La mineralogia y minerales, clasificacion
La mineralogia y minerales, clasificacionLa mineralogia y minerales, clasificacion
La mineralogia y minerales, clasificacionnewspotify528
 
TEMA 02 VISCOSIDAD DE MECÁNICA DE FLUIDOS .pdf
TEMA 02 VISCOSIDAD DE MECÁNICA DE FLUIDOS .pdfTEMA 02 VISCOSIDAD DE MECÁNICA DE FLUIDOS .pdf
TEMA 02 VISCOSIDAD DE MECÁNICA DE FLUIDOS .pdfJhonCongoraQuispe
 
EXPOSICION UNIDAD 3 MANTENIMIENTOO .pptx
EXPOSICION UNIDAD 3 MANTENIMIENTOO .pptxEXPOSICION UNIDAD 3 MANTENIMIENTOO .pptx
EXPOSICION UNIDAD 3 MANTENIMIENTOO .pptxKeylaArlethTorresOrt
 
Sanidad en alpacas, enfermedades infecciosas y parasitarias
Sanidad en alpacas, enfermedades infecciosas y parasitariasSanidad en alpacas, enfermedades infecciosas y parasitarias
Sanidad en alpacas, enfermedades infecciosas y parasitariasJilvertHuisaCenteno
 
ESTUDIO TÉCNICO DEL PROYECTO DE CREACION DE SOFTWARE PARA MANTENIMIENTO
ESTUDIO TÉCNICO DEL PROYECTO DE CREACION DE SOFTWARE PARA MANTENIMIENTOESTUDIO TÉCNICO DEL PROYECTO DE CREACION DE SOFTWARE PARA MANTENIMIENTO
ESTUDIO TÉCNICO DEL PROYECTO DE CREACION DE SOFTWARE PARA MANTENIMIENTOCamiloSaavedra30
 
INSTRUCTIVO_NNNNNNNNNNNNNNSART2 iess.pdf
INSTRUCTIVO_NNNNNNNNNNNNNNSART2 iess.pdfINSTRUCTIVO_NNNNNNNNNNNNNNSART2 iess.pdf
INSTRUCTIVO_NNNNNNNNNNNNNNSART2 iess.pdfautomatechcv
 
Unid 3 Extraccion 10-10-23 operaciones unitarias
Unid 3 Extraccion 10-10-23 operaciones unitariasUnid 3 Extraccion 10-10-23 operaciones unitarias
Unid 3 Extraccion 10-10-23 operaciones unitariasPatriciaRaimondi
 
EJERCICIOS DE -LEY-DE-OHM aplicaciones prácticas
EJERCICIOS DE -LEY-DE-OHM aplicaciones prácticasEJERCICIOS DE -LEY-DE-OHM aplicaciones prácticas
EJERCICIOS DE -LEY-DE-OHM aplicaciones prácticasEfrain Yungan
 
Guía para la identificación de materiales peligrosos
Guía para la identificación de materiales peligrososGuía para la identificación de materiales peligrosos
Guía para la identificación de materiales peligrososAdrianVarela22
 
SESION 2- 2 ATOMO Y ESTRUCTURA ATÓMICA.pdf
SESION 2- 2 ATOMO Y ESTRUCTURA ATÓMICA.pdfSESION 2- 2 ATOMO Y ESTRUCTURA ATÓMICA.pdf
SESION 2- 2 ATOMO Y ESTRUCTURA ATÓMICA.pdfEsvinAlvares
 
ACEROS DE PERFORACION, CARACTERISTICAS Y FICHAS TECNICAS.pptx
ACEROS DE PERFORACION, CARACTERISTICAS Y FICHAS TECNICAS.pptxACEROS DE PERFORACION, CARACTERISTICAS Y FICHAS TECNICAS.pptx
ACEROS DE PERFORACION, CARACTERISTICAS Y FICHAS TECNICAS.pptxaxelalejossantos
 
R. Contraloria 432-2023-CG obras x AD.pdf
R. Contraloria 432-2023-CG obras x AD.pdfR. Contraloria 432-2023-CG obras x AD.pdf
R. Contraloria 432-2023-CG obras x AD.pdfrudy cabezas
 
30-Planos-de-Casas-para-construir en.pdf
30-Planos-de-Casas-para-construir en.pdf30-Planos-de-Casas-para-construir en.pdf
30-Planos-de-Casas-para-construir en.pdfpauljean19831977
 
SEMICONDUCTORES lafhnoealifsncknisz.pptx
SEMICONDUCTORES lafhnoealifsncknisz.pptxSEMICONDUCTORES lafhnoealifsncknisz.pptx
SEMICONDUCTORES lafhnoealifsncknisz.pptxOSCARADRIANMEDINADUR
 
Sistema de Base de Datos para renta de trajes
Sistema de Base de Datos para renta de trajesSistema de Base de Datos para renta de trajes
Sistema de Base de Datos para renta de trajesjohannyrmnatejeda
 

Kürzlich hochgeladen (20)

Sistema Séptico Domiciliario para viviendas rurales
Sistema Séptico Domiciliario para viviendas ruralesSistema Séptico Domiciliario para viviendas rurales
Sistema Séptico Domiciliario para viviendas rurales
 
EJERCICIOS DE PROPIEDADES INDICES DE MECÁNICA DE SUELOS
EJERCICIOS DE PROPIEDADES INDICES DE MECÁNICA DE SUELOSEJERCICIOS DE PROPIEDADES INDICES DE MECÁNICA DE SUELOS
EJERCICIOS DE PROPIEDADES INDICES DE MECÁNICA DE SUELOS
 
GeoS33333333333333333333333333333333.pdf
GeoS33333333333333333333333333333333.pdfGeoS33333333333333333333333333333333.pdf
GeoS33333333333333333333333333333333.pdf
 
FOTOCELDAS Y LOS DIFERENTES TIPOS QUE EXISTEN.pdf
FOTOCELDAS Y LOS DIFERENTES TIPOS QUE EXISTEN.pdfFOTOCELDAS Y LOS DIFERENTES TIPOS QUE EXISTEN.pdf
FOTOCELDAS Y LOS DIFERENTES TIPOS QUE EXISTEN.pdf
 
04-circuitos-comparadores de amplificadores operacionales.pptx
04-circuitos-comparadores de amplificadores operacionales.pptx04-circuitos-comparadores de amplificadores operacionales.pptx
04-circuitos-comparadores de amplificadores operacionales.pptx
 
La mineralogia y minerales, clasificacion
La mineralogia y minerales, clasificacionLa mineralogia y minerales, clasificacion
La mineralogia y minerales, clasificacion
 
TEMA 02 VISCOSIDAD DE MECÁNICA DE FLUIDOS .pdf
TEMA 02 VISCOSIDAD DE MECÁNICA DE FLUIDOS .pdfTEMA 02 VISCOSIDAD DE MECÁNICA DE FLUIDOS .pdf
TEMA 02 VISCOSIDAD DE MECÁNICA DE FLUIDOS .pdf
 
EXPOSICION UNIDAD 3 MANTENIMIENTOO .pptx
EXPOSICION UNIDAD 3 MANTENIMIENTOO .pptxEXPOSICION UNIDAD 3 MANTENIMIENTOO .pptx
EXPOSICION UNIDAD 3 MANTENIMIENTOO .pptx
 
Sanidad en alpacas, enfermedades infecciosas y parasitarias
Sanidad en alpacas, enfermedades infecciosas y parasitariasSanidad en alpacas, enfermedades infecciosas y parasitarias
Sanidad en alpacas, enfermedades infecciosas y parasitarias
 
ESTUDIO TÉCNICO DEL PROYECTO DE CREACION DE SOFTWARE PARA MANTENIMIENTO
ESTUDIO TÉCNICO DEL PROYECTO DE CREACION DE SOFTWARE PARA MANTENIMIENTOESTUDIO TÉCNICO DEL PROYECTO DE CREACION DE SOFTWARE PARA MANTENIMIENTO
ESTUDIO TÉCNICO DEL PROYECTO DE CREACION DE SOFTWARE PARA MANTENIMIENTO
 
INSTRUCTIVO_NNNNNNNNNNNNNNSART2 iess.pdf
INSTRUCTIVO_NNNNNNNNNNNNNNSART2 iess.pdfINSTRUCTIVO_NNNNNNNNNNNNNNSART2 iess.pdf
INSTRUCTIVO_NNNNNNNNNNNNNNSART2 iess.pdf
 
Unid 3 Extraccion 10-10-23 operaciones unitarias
Unid 3 Extraccion 10-10-23 operaciones unitariasUnid 3 Extraccion 10-10-23 operaciones unitarias
Unid 3 Extraccion 10-10-23 operaciones unitarias
 
EJERCICIOS DE -LEY-DE-OHM aplicaciones prácticas
EJERCICIOS DE -LEY-DE-OHM aplicaciones prácticasEJERCICIOS DE -LEY-DE-OHM aplicaciones prácticas
EJERCICIOS DE -LEY-DE-OHM aplicaciones prácticas
 
Guía para la identificación de materiales peligrosos
Guía para la identificación de materiales peligrososGuía para la identificación de materiales peligrosos
Guía para la identificación de materiales peligrosos
 
SESION 2- 2 ATOMO Y ESTRUCTURA ATÓMICA.pdf
SESION 2- 2 ATOMO Y ESTRUCTURA ATÓMICA.pdfSESION 2- 2 ATOMO Y ESTRUCTURA ATÓMICA.pdf
SESION 2- 2 ATOMO Y ESTRUCTURA ATÓMICA.pdf
 
ACEROS DE PERFORACION, CARACTERISTICAS Y FICHAS TECNICAS.pptx
ACEROS DE PERFORACION, CARACTERISTICAS Y FICHAS TECNICAS.pptxACEROS DE PERFORACION, CARACTERISTICAS Y FICHAS TECNICAS.pptx
ACEROS DE PERFORACION, CARACTERISTICAS Y FICHAS TECNICAS.pptx
 
R. Contraloria 432-2023-CG obras x AD.pdf
R. Contraloria 432-2023-CG obras x AD.pdfR. Contraloria 432-2023-CG obras x AD.pdf
R. Contraloria 432-2023-CG obras x AD.pdf
 
30-Planos-de-Casas-para-construir en.pdf
30-Planos-de-Casas-para-construir en.pdf30-Planos-de-Casas-para-construir en.pdf
30-Planos-de-Casas-para-construir en.pdf
 
SEMICONDUCTORES lafhnoealifsncknisz.pptx
SEMICONDUCTORES lafhnoealifsncknisz.pptxSEMICONDUCTORES lafhnoealifsncknisz.pptx
SEMICONDUCTORES lafhnoealifsncknisz.pptx
 
Sistema de Base de Datos para renta de trajes
Sistema de Base de Datos para renta de trajesSistema de Base de Datos para renta de trajes
Sistema de Base de Datos para renta de trajes
 

PDIDTI-S7.pptx

  • 1. Proyectos De Infraestructura De Tecnologías De Información Tema: 4. Gestión Técnica de Infraestructura PhD(c). Luis Fernando Aguas Bucheli +593 984015184 @Aguaszoft Laguas@uisrael.edu.ec
  • 2. Siempre se puede ser mejor. Tiger Woods
  • 3. ODS ● 4.3 De aquí a 2030, asegurar el acceso igualitario de todos los hombres y las mujeres a una formación técnica, profesional y superior de calidad, incluida la enseñanza universitaria META
  • 4. Objetivo • Formula adecuadamente proyectos de Tecnologías de Información de tal forma quesea posible realizar el seguimiento eficaz garantizando el desarrollo y finalización exitosa de un proyecto reduciendo los factores deriesgo ● 4.1 Docker, docker-compose Contenido
  • 6. ¿Que es Docker? ● Plataforma abierta para crear y ejecutar aplicaciones distribuidas. ● Destinado a desarrolladores y administradores. ● Construcción basada en componentes separados. ● Ejecución en distintas plataformas (servers, desktops, laptops…) con una misma compilación.
  • 7. ¿En que esta basado? (requisitos) ● Sistemas 64 bits ● Linux kernel 3.8+ ● GoLang ● Linux container (LXC)
  • 8. ¿Cómo funciona? (frente a VMs) ● Máquinas virtuales o SO Anfitrión o Hipervisor o SO Invitado o Librerías o Aplicación
  • 9. ¿Cómo funciona? (frente a VMs) ● Docker o SO Anfitrión o Docker o Librerías o Aplicación
  • 11. ¿Por qué para desarrolladores? ● Sin problemas de dependencias. ● Cualquier lenguaje de programación. ● Aplicaciones portables multiplataforma. ● Control de versiones. ● Repositorios públicos o privados. ● Compilaciones automatizadas.
  • 12. ¿Por qué para administradores? ● Abstracción del SO anfitrión. ● Escalabilidad rápida. ● Seguridad añadida. ● Máximo rendimiento. ● Menor tamaño de los contenedores. ● Mayor aprovechamiento del hardware. ● Funciona dentro de máquinas virtuales.
  • 13. Ventajas ● Docker es código abierto o https://github.com/docker/docker ● Sistema enfocado a aplicaciones, no a máquinas. ● Reutilización de compilaciones previas. ● Ecosistema en crecimiento (Docker Hub, StackOverFlow…). ● Aislamiento de recursos (sistema de archivos, red, ram…).
  • 14. ¡Aún más! ● Linux container daemon (LXD) o Hecho por Ubuntu/Canonical. o Hipervisor para contenedores. o Migración en caliente entre distintas máquinas. o Seguridad a nivel de hardware. o Gestión avanzada de redes. o API REST limpia y extensible.
  • 15. ¡Aún más! ● Kubernetes o Hecho por Google. o Gestor de clústeres de contenedores. o API de bajo nivel. o Mecanismos de self-healing:  Reinicios automáticos.  Programación de eventos.  Clonación/réplicas.
  • 16. Demostraciones ● Ubuntu 14.10 ● LAMP stack ● Wordpress ● Cloud 9 IDE ● Fedora Desktop
  • 17. ● docker run -t -i ubuntu:utopic
  • 18. ● docker run -p 80:80 -p 3306:3306 tutum/lamp ● curl http://localhost/
  • 19. ● docker run -d -p 80:80 tutum/wordpress ● curl http://localhost/
  • 20. ● docker run -d -p 3131:3131 -v /tmp:/workspace alanct/cloud9
  • 21. ● docker run -d -p 3389:3389 jumanjiman/xrdp ● foo:bar
  • 22. docker pull alanct/cloud9 Paso 1.1 - Cómo instalar Docker # curl -sSL https://get.docker.com/ubuntu/ | sh Get:29 http://security.ubuntu.com trusty-security/multiverse Sources [698 B] Get:30 http://security.ubuntu.com trusty-security/main i386 Packages [147 kB] Get:31 http://security.ubuntu.com trusty-security/restricted i386 Packages [14 B] Get:32 http://security.ubuntu.com trusty-security/universe i386 Packages [51.2 kB] Get:33 http://security.ubuntu.com trusty-security/multiverse i386 Packages [1,401 B] Get:34 http://security.ubuntu.com trusty-security/main Translation-en [75.0 kB] Hit http://security.ubuntu.com trusty-security/multiverse Translation-en Hit http://security.ubuntu.com trusty-security/restricted Translation-en Get:35 http://security.ubuntu.com trusty-security/universe Translation-en [30.5 kB] Fetched 1,700 kB in 5s (311 kB/s) Reading package lists... Done ...
  • 23. docker pull alanct/cloud9 Paso 1.2 - Cómo acceder a Docker # docker Usage: Docker [OPTIONS] COMMAND [arg...] -H="127.0.0.1:4243": Host:port to bind/connect to A self-sufficient runtime for linux containers. Commands: attach Attach to a running container build Build a container from a Dockerfile commit Create a new image from a container's changes diff Inspect changes on a container's filesystem export Stream the contents of a container as a tar archive history Show the history of an image images List images import Create a new filesystem image from the contents of a tarball info Display system-wide information insert Insert a file in an image inspect Return low-level information on a container ...
  • 24. docker pull alanct/cloud9 Paso 2.1 - Buscar imágenes # docker search tutorial Found 1 results matching your query ("tutorial") NAME DESCRIPTION learn/tutorial An image for the interactive tutorial
  • 25. docker pull alanct/cloud9 Paso 2.2 - Descargar imágenes # docker pull learn/tutorial Pulling repository learn/tutorial from https://index.docker.io/v1 Pulling image 8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c (precise) from ubuntu Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc (12.10) from ubuntu Pulling image 27cf784147099545 () from tutorial
  • 26. docker pull alanct/cloud9 Paso 3 - Ejecutar comandos # docker run learn/tutorial echo “Hola mundo” Hola mundo
  • 27. docker pull alanct/cloud9 Paso 4 - Instalar paquetes # docker run learn/tutorial apt-get install -y ping Reading package lists... Building dependency tree... The following NEW packages will be installed: iputils-ping 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 56.1 kB of archives. After this operation, 143 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ precise/main iputils-ping amd64 3:20101006- 1ubuntu1 [56.1 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 56.1 kB in 1s (50.3 kB/s) Selecting previously unselected package iputils-ping. (Reading database ... 7545 files and directories currently installed.) Unpacking iputils-ping (from .../iputils-ping_3%3a20101006-1ubuntu1_amd64.deb) ... Setting up iputils-ping (3:20101006-1ubuntu1) ...
  • 28. docker pull alanct/cloud9 Paso 4 - Instalar paquetes # docker run learn/tutorial apt-get install -y ping Reading package lists... Building dependency tree... The following NEW packages will be installed: iputils-ping 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 56.1 kB of archives. After this operation, 143 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ precise/main iputils-ping amd64 3:20101006- 1ubuntu1 [56.1 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 56.1 kB in 1s (50.3 kB/s) Selecting previously unselected package iputils-ping. (Reading database ... 7545 files and directories currently installed.) Unpacking iputils-ping (from .../iputils-ping_3%3a20101006-1ubuntu1_amd64.deb) ... Setting up iputils-ping (3:20101006-1ubuntu1) ...
  • 29. docker pull alanct/cloud9 Paso 5 - Guardar cambios # docker ps ID IMAGE COMMAND CREATED STATUS # docker ps -a ID IMAGE COMMAND CREATED STATUS 6982a9948422 ubuntu:12.04 apt-get install ping 1 minute ago Exit 0 # docker commit 698 learn/ping effb66b31edb
  • 30. docker pull alanct/cloud9 Paso 6 - Ejecutar la nueva imagen # docker run learn/ping ping inf.uva.es PING inf.uva.es (157.88.109.216) 56(84) bytes of data. 64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=1 ttl=55 time=55.1 ms 64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=2 ttl=55 time=53.7 ms 64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=3 ttl=55 time=55.4 ms 64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=4 ttl=55 time=54.6 ms 64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=5 ttl=55 time=55.1 ms 64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=6 ttl=55 time=55.6 ms 64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=7 ttl=55 time=53.6 ms 64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=8 ttl=55 time=56.2 ms 64 bytes from www.inf.uva.es (157.88.109.216): icmp_seq=9 ttl=55 time=53.2 ms ...
  • 31. docker pull alanct/cloud9 Paso 7 - Inspeccionar el contenedor # docker inspect efe [2014/11/06 00:00:01 GET /v1.3/containers/efef/json { "ID": "efefdc74a1d5900d7d7a74740e5261c09f5f42b6dae58ded6a1fde1cde7f4ac5", "Created": "2014-11-06T00:00:01.417119736Z", "Path": "ping", "Args": [ "inf.uva.es" ], "Config": { "Hostname": "efefdc74a1d5", "User": "", "Memory": 0, "MemorySwap": 0, "CpuShares": 0, "AttachStdin": false, "AttachStdout": true, "AttachStderr": true, "PortSpecs": null, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": null, ...
  • 32. docker pull alanct/cloud9 Paso 8 - Dockerfile # nano Dockerfile FROM ubuntu:latest RUN apt-get -y update RUN apt-get -y upgrade RUN apt-get -y install git python RUN echo “Hola mundo” >> index.html EXPOSE 80 CMD [“python”, “-m”, “SimpleHTTPServer”, “80”] # docker build -t learn/webserver . ... # docker run -P learn/webserver Serving HTTP on 0.0.0.0 port 80 ...
  • 33. docker pull alanct/cloud9 Paso 9.1 - Guardar/cargar imágenes # docker save learn/ping > /tmp/imagen.tar ... # docker load < /tmp/imagen.tar ...
  • 34. docker pull alanct/cloud9 Paso 9.2 - Exportar/importar conten. # docker ps -a ID IMAGE COMMAND CREATED STATUS 6982a9948422 ubuntu:12.04 apt-get install ping 1 minute ago Exit 0 # docker export 698 > /tmp/contenedor.tar ... # cat /tmp/contenedor.tar | docker import - learn/ping-export:latest ...