Optimizaci贸n Avanzada en Docker

1

La importancia de Aprender Docker

2

Desbloqueando el Poder de Docker

3

Construcci贸n de Im谩genes Multi-stage

4

Escaneo de im谩genes en Docker

5

Optimizaci贸n de Im谩genes de docker con Distroless

6

Compilaci贸n Multiplataforma

7

Gesti贸n de Cach茅 y Eficiencia en Builds

8

Reducci贸n de Dependencias y Minimizaci贸n de Tama帽o

9

Optimizaci贸n de Build Context y Reducci贸n de Transferencias

10

Explorando Docker Hub

Buenas Pr谩cticas en Docker

11

Uso Eficiente de Capas en Im谩genes Docker

12

Uso de .dockerignore para Optimizaci贸n

13

Eliminaci贸n de Archivos Temporales y Residuos en Docker

14

Agrega usuarios a tu imagen de docker

15

Mejores Pr谩cticas para Construcci贸n de Im谩genes

Instalaci贸n y Configuraci贸n en Entornos Multiplataforma

16

Despliegue de Docker en Azure y Entornos Locales

17

Publicar tu imagen a Container Apps de Azure

Redes Avanzadas y Balanceo de Carga

18

Modelos de Red en Docker

19

Exposici贸n y Publicaci贸n de Puertos en Docker

20

Balanceo de Carga con Docker

Automatizaci贸n de CI/CD

21

Ejecuci贸n de Scripts Multi-line en Docker

22

Automatizaci贸n de CI/CD con Docker

23

Estrategias Avanzadas de CI/CD en Docker

24

Publicando mi imagen de docker a la nube con CI/CD

Orquestaci贸n

25

Retomando Docker Compose

26

Secciones en un archivo Docker Compose

27

Agregando vol煤menes con Docker Compose

28

Secuencia de apagado

29

Introducci贸n a Docker Swarm

30

Replicaci贸n de Stacks con Docker Compose

31

De Docker a la nube

32

Orquestadores de contenedores

33

Costos de Docker

Develop

34

Introducci贸n a los devcontainers

You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesi贸n a prueba de IA

Antes: $249

Currency
$209
Suscr铆bete

Termina en:

1 D铆as
8 Hrs
1 Min
5 Seg

Publicando mi imagen de docker a la nube con CI/CD

24/34
Resources

How to deploy an application with Azure and Docker using GitHub Actions?

In today's technology world, deploying applications is not just a necessity, but an essential skill. Approaching continuous deployment using tools like Azure, Docker and GitHub Actions can greatly simplify the process, making it more efficient and less prone to manual errors. Here, we will explore how to effectively set up this workflow.

How to create a web app in Azure?

The first step to deploying your application in the cloud is to set up a web app in Azure. This will allow you to host your Docker container for public access and ensures that any updates are reflected immediately. To do this:

  1. Log in to the Azure portal and select "Web App" from the available options.
  2. Choose the option for containers and opt for Linux as the operating system.
  3. Configure the resource pool and choose an appropriate region, e.g. EastUS.
  4. Select a basic plan to keep costs low for initial testing.
  5. Configure the network settings to allow public access.

How to link DockerHub to Azure?

Once the web app is created, it is imperative to link it to the Docker image you want to deploy from DockerHub. Make sure to:

  • Configure in the containers section the access to your DockerHub public image.
  • Correctly insert the hub URL, the image name and its tag (e.g. latest).

How to configure GitHub Actions for continuous deployment?

GitHub Actions allows you to automate deployment by transferring your changes from the GitHub repository to the web app in Azure without manual intervention. Configure your GitHub Actions by following these steps:

  1. Head to Settings in your GitHub repository and add a new secret called Azure WebApp Publish Profile.
  2. Upload the publishing profile from Azure into this secret, ensuring that the credentials are protected.
  3. Edit your YAML file in .github/workflows to include an authentication step that uses the new secret: ````yaml
    • name: Authenticate to Azure uses: azure/webapps-deploy@v2 with: app-name: 'AminES WebApp' publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} images: 'amin_espinosa/website_platzi:latest' ````
  4. Adjust the workflow to cover the steps from building and publishing the image to deployment.

What to expect after setup?

  • When you commit to your repository, it will automatically trigger the flow that will perform the Docker Build, Docker Push and finally the deployment of the new image.
  • You can monitor the status of the deployment directly from the Actions section in your repository and watch as the changes are implemented in real time.

With patience and dedication, even if you are a beginner, you will soon master the art of continuous deployment, saving time and minimizing human error in the process. This experience promises to empower your DevOps skills, helping you excel in the management and evolution of your projects. Go ahead, every step counts on your way to success!

Contributions 1

Questions 1

Sort by:

Want to see more contributions, questions and answers from the community?

En el pasado tuve un caso en donde tuve que construir apps para multiples arquitecturas. Me hubiese gustado un poco mas acerca de t茅cnicas avanzadas para construcci贸n de apps multiplataforma y fusion de tags post construcci贸n de los mismos via `docker bake` o `docker buildx` y `docker-bake.hcl` <https://docs.docker.com/build/bake/>