Skip to content

Commit

Permalink
Agregando v2m 14
Browse files Browse the repository at this point in the history
  • Loading branch information
pablokbs committed Dec 2, 2019
1 parent 59cc0e2 commit d33634a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Si el nombre del capítulo no tiene link, es porque no necesité postear ningún
11. [kubectl tips](./v2m/11) / [video](https://youtu.be/caHsjOmrr2s)
12. [kind](./v2m/12) / [video](https://youtu.be/8Wjzpywdjyc)
13. [Telepresence](./v2m/13) / [video](https://youtu.be/MipT55DJFec)
14. [Diferencia entre RUN, CMD y ENTRYPOINT](./v2m/14) / [video](https://youtu.be/6ZnecM3ipu4)

6. Terraform
1. [Terraform 1](./terraform/1) / [video](https://youtu.be/1itPqkU8XZw)
Expand Down
9 changes: 9 additions & 0 deletions v2m/14/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM python:3.8-alpine

RUN apk add --update vim

WORKDIR /usr/src/myapp

COPY . .

ENTRYPOINT [ "python" ]
1 change: 1 addition & 0 deletions v2m/14/hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello world")
1 change: 1 addition & 0 deletions v2m/14/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hola pelades
9 changes: 9 additions & 0 deletions v2m/14/server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import http.server
import socketserver

PORT = 8080
Handler = http.server.SimpleHTTPRequestHandler

with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()

0 comments on commit d33634a

Please sign in to comment.