Te quedaste corto en este curso cuando empezaste con eks… con muchas expectativas de que platzi renueve sus cursos de aws ya es hora!
Presentación
Agenda
EC2
Introducción a EC2
Tipos de instancias al momento de crear un EC2
Instalación del proyecto en nuestra instancia de EC2
Imágenes de instancias
Snapshots y sus operaciones
Configuración de Red
Balanceadores de carga
Balanceadores de carga con https
Marketplace de AMIs
Reto EC2
Lightsail
Qué es Lightsail
Marketplace LS
Comparativa
Creando un VPS
Instalando Frases Citables
Creando una BD
Reto Lightsail
ECR/ECS/EKS
Introducción a ECR/ECS/EKS
Introducción a ECS
Corriendo un contenedor
Instalando ambiente docker en EC2
Introducción a EKS
Configuración kops / k8s en AWS
Reto ECR/ECS/EKS
Lambda
Introducción a Lambda
Configuración de función lambda
Reto Lambda
Elastic Beanstalk
Introducción a Elastic Beanstalk
Creando un ambiente
Configurando un ambiente para una nueva versión
Reto: Sube una aplicación en Elastic Beanstalk
Conclusiones
Trabajo Futuro
You don't have access to this class
Keep learning! Join and start boosting your career
Docker is a tool that has revolutionized the world of software development by making it easy to create, deploy and run containerized applications. This approach allows applications to run consistently in any environment, which solves the typical "runs on my machine" problem. By encapsulating an application and all its dependencies in a container, Docker ensures that it can run without modification on any machine that has Docker installed.
Creating a Dockerfile is the first step in containerizing your application. A Dockerfile is a text file that contains the commands needed to assemble a Docker image. Here's a basic flow to get you started:
Define the base image: select a base image that suits your application's needs. For example, if you are working with Node.js, you could use node:14
as your base image.
Copy the source code: Include your application files to the container using COPY
or ADD
.
Install dependencies: If your application needs external libraries, make sure to install them, usually using a package management system such as npm
for Node.js or pip
for Python.
Specify the run command: Define which command your application will launch when running in the container. Usually, this is done with the CMD
or ENTRYPOINT
command.
Here is a basic example:
# Use the base image Node.jsFROM node:14
# Create the application directoryWORKDIR /usr/src/app
# Copy necessary filesCOPY package*.json ./
# Install dependenciesRUN npm install
# Copy the source codeCOPY. .
# Expose the port on which the application runsEXPOSE 8080
# Application execution commandCMD ["node", "app.js"]
Once you have created your Docker container, the next step is to upload it to a registry to easily manage it and share it with others. The steps are as follows:
Create an account in a Docker Registry: The most common registries are Docker Hub or a private registry.
Tag your image: Use docker tag <image_name> <repository>/<image>:<tag>
to tag your image.
Login: Use docker login
to enter your credentials and connect to your registry.
Upload image: With the command docker push <repository>/<image>:<tag>
you send your image to the registry.
Run the image from the registry: On any Docker machine, you can pull the image using docker pull <repository>/<image>:<tag>
. Once downloaded, you can run it with docker run
.
Docker offers a number of significant advantages:
Enhanced portability: Containers can be deployed on any machine that has Docker installed, regardless of the underlying operating system.
Efficient use of resources: Containers share the operating system kernel, making them very lightweight and easy to manage.
Easy continuous integration and deployment (CI/CD): Docker integrates well with CI/CD tools, making it easy to automate testing and deployment.
Isolation: Ensures that an application in a container does not affect other applications on the same host.
Getting started with Docker can be a bit daunting at first, but with practice, it will become an essential tool in your developer kit - feel free to experiment and keep practicing!
Contributions 8
Questions 0
Te quedaste corto en este curso cuando empezaste con eks… con muchas expectativas de que platzi renueve sus cursos de aws ya es hora!
¿Cuál es la mejor forma de borrar imágenes antiguas en el repositorio?
¿Cómo me aseguro que la tarea que tengo corriendo está usando la última definición de tarea?
¿Cuál es el proceso para migrar de una infraestructura que corre en ECS pero sobre máaquinas ec2 a una que utilice Fargate?
La verdad, no entendí muy bien las 3 últimas clases. Tuve que ver otros videos aparte y leer más la documentación para entender lo que estaban haciendo. Espero que lo puedan renovar, ya van casi 3 años desde que algunos estudiantes sugirieron que renovaran el curso y no lo hicieron. Soy un apasionado del mundo de AWS y la verdad, esta parte fue algo desilusionante.
done
Done.
Hecho
Want to see more contributions, questions and answers from the community?