Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
fb9e6b7fa8 | |||
3488aa5217 | |||
90636a6e81 | |||
234f32894f | |||
5258ba0021 |
@ -18,4 +18,4 @@ docker build -t my-apache2 .
|
||||
docker run -dit --name my-running-app -p 8080:80 my-apache2
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
20
Clase 2/README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# Clase 2
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
### Ejercicio:
|
||||
Correr Comandos:
|
||||
|
||||
`docker network create --driver bridge mysql-net`
|
||||
|
||||
`docker run --name db --network mysql-net -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 -d mysql`
|
||||
|
||||
`docker run --name phpmyadmin --network mysql-net -e PMA_HOST=db -e MYSQL_ROOT_PASSWORD=password -e PMA_PORT=3306 -d -p 8080:80 phpmyadmin/phpmyadmin`
|
||||
|
||||

|
BIN
Clase 2/img/Diap1.png
Normal file
After Width: | Height: | Size: 136 KiB |
BIN
Clase 2/img/Diap2.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
Clase 2/img/Diap3.png
Normal file
After Width: | Height: | Size: 304 KiB |
BIN
Clase 2/img/Diap4.png
Normal file
After Width: | Height: | Size: 294 KiB |
BIN
Clase 2/img/Diap5.png
Normal file
After Width: | Height: | Size: 288 KiB |
BIN
Clase 2/img/Diap6.png
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
Clase 2/img/Diap7.png
Normal file
After Width: | Height: | Size: 416 KiB |
BIN
Clase 2/img/Diap8.png
Normal file
After Width: | Height: | Size: 74 KiB |
28
Clase 3/Ejercicio/mysql-phpmyadmin/docker-compose.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
version: '3.3'
|
||||
services:
|
||||
db:
|
||||
image: mysql
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
ports:
|
||||
- '3306:3306'
|
||||
expose:
|
||||
- '3306'
|
||||
volumes:
|
||||
- my-db:/var/lib/mysql
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin
|
||||
restart: always
|
||||
environment:
|
||||
PMA_HOSTS: db
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
ports:
|
||||
- '8080:80'
|
||||
expose:
|
||||
- '80'
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
my-db:
|
||||
external: false #if true will try to find a folder that you set
|
16
Clase 3/Ejercicio/mysql/docker-compose.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
version: '3.3'
|
||||
services:
|
||||
db:
|
||||
image: mysql
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
ports:
|
||||
- '3306:3306'
|
||||
expose:
|
||||
- '3306'
|
||||
volumes:
|
||||
- my-db:/var/lib/mysql
|
||||
volumes:
|
||||
my-db:
|
||||
external: false #if true will try to find a folder that you set
|
5
Clase 3/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Clase 3
|
||||

|
||||

|
||||
|
||||

|
BIN
Clase 3/img/Diap1.png
Normal file
After Width: | Height: | Size: 438 KiB |
BIN
Clase 3/img/Diap2.png
Normal file
After Width: | Height: | Size: 77 KiB |
47
Clase 4/Ejercicio/hello-app/hello-app.yaml
Normal file
@ -0,0 +1,47 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: hello
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: my-hello-svc
|
||||
namespace: hello
|
||||
labels:
|
||||
app: hello
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: hello
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: my-hello
|
||||
namespace: hello
|
||||
labels:
|
||||
app: hello
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hello
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hello
|
||||
spec:
|
||||
containers:
|
||||
- name: hello
|
||||
image: gcr.io/google-samples/hello-app:1.0
|
||||
resources:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
|
47
Clase 4/Ejercicio/nginx-app/nginx-app.yaml
Normal file
@ -0,0 +1,47 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: nginx
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: my-ngnix-svc
|
||||
namespace: nginx
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: nginx
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: my-nginx
|
||||
namespace: nginx
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx
|
||||
resources:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
13
Clase 4/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Clase 4
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||

|
BIN
Clase 4/img/Diap1.png
Normal file
After Width: | Height: | Size: 91 KiB |
BIN
Clase 4/img/Diap10.png
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
Clase 4/img/Diap2.png
Normal file
After Width: | Height: | Size: 265 KiB |
BIN
Clase 4/img/Diap3.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
Clase 4/img/Diap4.png
Normal file
After Width: | Height: | Size: 154 KiB |
BIN
Clase 4/img/Diap5.png
Normal file
After Width: | Height: | Size: 147 KiB |
BIN
Clase 4/img/Diap6.png
Normal file
After Width: | Height: | Size: 105 KiB |
BIN
Clase 4/img/Diap7.png
Normal file
After Width: | Height: | Size: 129 KiB |
BIN
Clase 4/img/Diap8.png
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
Clase 4/img/Diap9.png
Normal file
After Width: | Height: | Size: 87 KiB |