Este desafío técnico evalúa tus habilidades en arquitectura cloud, containerización y CI/CD a través de tres pruebas prácticas que simulan escenarios reales de producción en entornos empresariales.
Tiempo estimado: 5-7 días
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> | |
| <link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-light-blue.css"> | |
| <title>Links website</title> | |
| <script src="https://unpkg.com/feather-icons@4.28.0/dist/feather.min.js"></script> |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: app1 | |
| labels: | |
| app: app1 | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: |
| #!/bin/bash | |
| # User Data para Amazon Linux 2023 | |
| sudo yum update -y | |
| # Instalar nginx y herramientas | |
| sudo yum install nginx unzip wget -y | |
| # Iniciar nginx | |
| sudo systemctl start nginx |
| FROM jenkins/jenkins:lts | |
| USER root | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| git \ | |
| wget \ | |
| unzip \ | |
| software-properties-common \ |
Objetivo: Crear una jerarquía de directorios y archivos utilizando Bash. Este ejercicio es fundamental para comprender cómo organizar archivos y directorios en un entorno DevOps.
Usando comandos de Bash, crea la siguiente estructura de directorios y archivos:
| #!/bin/bash | |
| # Script definitivo para desplegar web estática con Nginx | |
| # Versión limpia y directa con colores | |
| set -e # Salir si hay errores | |
| # Colores | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
| pipeline { | |
| agent any | |
| stages { | |
| stage('check tools') { | |
| steps { | |
| sh 'java --version' | |
| sh 'mvn --version' | |
| } | |
| } |
| #!/bin/bash | |
| dnf update -y | |
| dnf install -y nginx unzip python3-certbot-nginx | |
| TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600" 2>/dev/null) | |
| PUBLIC_IP=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/public-ipv4 2>/dev/null) | |
| if [ -z "$PUBLIC_IP" ]; then | |
| PUBLIC_IP=$(curl -s ifconfig.me) | |
| fi |
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Workshop de Terraform</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet"> | |
| <style> |