191 lines
6.1 KiB
Bash
191 lines
6.1 KiB
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
# Update prescription metadata to match blog format
|
||
|
|
|
||
|
|
# English prescriptions
|
||
|
|
echo "Updating English prescriptions..."
|
||
|
|
|
||
|
|
# kubernetes-deployment-patterns
|
||
|
|
cat > /tmp/kube_en.yaml << 'EOF'
|
||
|
|
---
|
||
|
|
id: "kubernetes-deployment-patterns"
|
||
|
|
title: "Kubernetes Deployment Patterns for Rust Applications"
|
||
|
|
subtitle: "Best practices for deploying Rust services to Kubernetes"
|
||
|
|
excerpt: "Learn proven patterns for deploying Rust applications to Kubernetes. From configmaps to health checks, master production-ready deployments."
|
||
|
|
author: "Jesús Pérez Lorenzo"
|
||
|
|
date: "2024-01-14"
|
||
|
|
published: true
|
||
|
|
read_time: "10 min read"
|
||
|
|
category: "DevOps"
|
||
|
|
difficulty: "Advanced"
|
||
|
|
tags: ["kubernetes", "rust", "deployment", "containers"]
|
||
|
|
featured: false
|
||
|
|
language: "en"
|
||
|
|
translations: ["es"]
|
||
|
|
---
|
||
|
|
EOF
|
||
|
|
|
||
|
|
# rust-error-handling-patterns
|
||
|
|
cat > /tmp/rust_error_en.yaml << 'EOF'
|
||
|
|
---
|
||
|
|
id: "rust-error-handling-patterns"
|
||
|
|
title: "Rust Error Handling Patterns"
|
||
|
|
subtitle: "Comprehensive guide to error management in Rust"
|
||
|
|
excerpt: "Master Rust's error handling patterns from basic Result types to advanced custom error implementations. Build robust and maintainable applications."
|
||
|
|
author: "Jesús Pérez Lorenzo"
|
||
|
|
date: "2024-01-16"
|
||
|
|
published: true
|
||
|
|
read_time: "12 min read"
|
||
|
|
category: "Rust Programming"
|
||
|
|
difficulty: "Intermediate"
|
||
|
|
tags: ["rust", "error-handling", "patterns", "best-practices"]
|
||
|
|
featured: true
|
||
|
|
language: "en"
|
||
|
|
translations: ["es"]
|
||
|
|
---
|
||
|
|
EOF
|
||
|
|
|
||
|
|
# self-hosted-ci-cd-pipeline
|
||
|
|
cat > /tmp/cicd_en.yaml << 'EOF'
|
||
|
|
---
|
||
|
|
id: "self-hosted-ci-cd-pipeline"
|
||
|
|
title: "Building a Self-Hosted CI/CD Pipeline"
|
||
|
|
subtitle: "Complete guide to self-hosted continuous integration"
|
||
|
|
excerpt: "Set up a complete self-hosted CI/CD pipeline using GitLab, Docker, and Kubernetes. Perfect for teams wanting full control over their deployment infrastructure."
|
||
|
|
author: "Jesús Pérez Lorenzo"
|
||
|
|
date: "2024-01-18"
|
||
|
|
published: true
|
||
|
|
read_time: "15 min read"
|
||
|
|
category: "DevOps"
|
||
|
|
difficulty: "Advanced"
|
||
|
|
tags: ["ci-cd", "gitlab", "docker", "kubernetes", "devops"]
|
||
|
|
featured: true
|
||
|
|
language: "en"
|
||
|
|
translations: ["es"]
|
||
|
|
---
|
||
|
|
EOF
|
||
|
|
|
||
|
|
# Spanish prescriptions
|
||
|
|
echo "Updating Spanish prescriptions..."
|
||
|
|
|
||
|
|
# async-error-handling-rust (ES)
|
||
|
|
cat > /tmp/async_es.yaml << 'EOF'
|
||
|
|
---
|
||
|
|
id: "async-error-handling-rust"
|
||
|
|
title: "Manejo de Errores Asíncronos en Rust"
|
||
|
|
subtitle: "Patrones completos para gestionar errores en código async Rust"
|
||
|
|
excerpt: "Aprende patrones probados para manejar errores en aplicaciones Rust asíncronas. Desde tipos Result hasta traits de error personalizados, domina el arte del manejo robusto de errores."
|
||
|
|
author: "Jesús Pérez Lorenzo"
|
||
|
|
date: "2024-01-12"
|
||
|
|
published: true
|
||
|
|
read_time: "15 min lectura"
|
||
|
|
category: "Manejo de Errores"
|
||
|
|
difficulty: "Intermedio"
|
||
|
|
tags: ["rust", "async", "manejo-errores", "patrones"]
|
||
|
|
featured: true
|
||
|
|
language: "es"
|
||
|
|
translations: ["en"]
|
||
|
|
---
|
||
|
|
EOF
|
||
|
|
|
||
|
|
# docker-multi-stage-optimization (ES)
|
||
|
|
cat > /tmp/docker_opt_es.yaml << 'EOF'
|
||
|
|
---
|
||
|
|
id: "docker-multi-stage-optimization"
|
||
|
|
title: "Optimización de Imágenes Docker con Builds Multi-Stage"
|
||
|
|
subtitle: "Reduce el tamaño de imagen y mejora la seguridad"
|
||
|
|
excerpt: "Domina los builds multi-stage de Docker para crear imágenes de contenedor mínimas y seguras. Incluye ejemplos prácticos para aplicaciones Rust, Node.js y Go."
|
||
|
|
author: "Jesús Pérez Lorenzo"
|
||
|
|
date: "2024-01-08"
|
||
|
|
published: true
|
||
|
|
read_time: "45 min lectura"
|
||
|
|
category: "Contenedores"
|
||
|
|
difficulty: "Intermedio"
|
||
|
|
tags: ["docker", "optimización", "seguridad", "multi-stage"]
|
||
|
|
featured: false
|
||
|
|
language: "es"
|
||
|
|
translations: ["en"]
|
||
|
|
---
|
||
|
|
EOF
|
||
|
|
|
||
|
|
# docker-multi-stage-rust (ES)
|
||
|
|
cat > /tmp/docker_rust_es.yaml << 'EOF'
|
||
|
|
---
|
||
|
|
id: "docker-multi-stage-rust"
|
||
|
|
title: "Builds Docker Multi-Stage para Rust"
|
||
|
|
subtitle: "Optimizando imágenes de contenedor para aplicaciones Rust"
|
||
|
|
excerpt: "Aprende cómo crear imágenes Docker eficientes para aplicaciones Rust usando builds multi-stage. Reduce el tamaño de imagen manteniendo seguridad y rendimiento."
|
||
|
|
author: "Jesús Pérez Lorenzo"
|
||
|
|
date: "2024-01-10"
|
||
|
|
published: true
|
||
|
|
read_time: "8 min lectura"
|
||
|
|
category: "Contenedores"
|
||
|
|
difficulty: "Principiante"
|
||
|
|
tags: ["docker", "rust", "contenedores", "optimización"]
|
||
|
|
featured: false
|
||
|
|
language: "es"
|
||
|
|
translations: ["en"]
|
||
|
|
---
|
||
|
|
EOF
|
||
|
|
|
||
|
|
# kubernetes-deployment-patterns (ES)
|
||
|
|
cat > /tmp/kube_es.yaml << 'EOF'
|
||
|
|
---
|
||
|
|
id: "kubernetes-deployment-patterns"
|
||
|
|
title: "Patrones de Despliegue en Kubernetes para Aplicaciones Rust"
|
||
|
|
subtitle: "Mejores prácticas para desplegar servicios Rust en Kubernetes"
|
||
|
|
excerpt: "Aprende patrones probados para desplegar aplicaciones Rust en Kubernetes. Desde configmaps hasta health checks, domina los despliegues listos para producción."
|
||
|
|
author: "Jesús Pérez Lorenzo"
|
||
|
|
date: "2024-01-14"
|
||
|
|
published: true
|
||
|
|
read_time: "10 min lectura"
|
||
|
|
category: "DevOps"
|
||
|
|
difficulty: "Avanzado"
|
||
|
|
tags: ["kubernetes", "rust", "despliegue", "contenedores"]
|
||
|
|
featured: false
|
||
|
|
language: "es"
|
||
|
|
translations: ["en"]
|
||
|
|
---
|
||
|
|
EOF
|
||
|
|
|
||
|
|
# rust-error-handling-patterns (ES)
|
||
|
|
cat > /tmp/rust_error_es.yaml << 'EOF'
|
||
|
|
---
|
||
|
|
id: "rust-error-handling-patterns"
|
||
|
|
title: "Patrones de Manejo de Errores en Rust"
|
||
|
|
subtitle: "Guía completa para la gestión de errores en Rust"
|
||
|
|
excerpt: "Domina los patrones de manejo de errores de Rust desde tipos Result básicos hasta implementaciones avanzadas de errores personalizados. Construye aplicaciones robustas y mantenibles."
|
||
|
|
author: "Jesús Pérez Lorenzo"
|
||
|
|
date: "2024-01-16"
|
||
|
|
published: true
|
||
|
|
read_time: "12 min lectura"
|
||
|
|
category: "Programación Rust"
|
||
|
|
difficulty: "Intermedio"
|
||
|
|
tags: ["rust", "manejo-errores", "patrones", "mejores-prácticas"]
|
||
|
|
featured: true
|
||
|
|
language: "es"
|
||
|
|
translations: ["en"]
|
||
|
|
---
|
||
|
|
EOF
|
||
|
|
|
||
|
|
# self-hosted-ci-cd-pipeline (ES)
|
||
|
|
cat > /tmp/cicd_es.yaml << 'EOF'
|
||
|
|
---
|
||
|
|
id: "self-hosted-ci-cd-pipeline"
|
||
|
|
title: "Construyendo un Pipeline CI/CD Auto-Alojado"
|
||
|
|
subtitle: "Guía completa para integración continua auto-alojada"
|
||
|
|
excerpt: "Configura un pipeline CI/CD completo auto-alojado usando GitLab, Docker y Kubernetes. Perfecto para equipos que quieren control total sobre su infraestructura de despliegue."
|
||
|
|
author: "Jesús Pérez Lorenzo"
|
||
|
|
date: "2024-01-18"
|
||
|
|
published: true
|
||
|
|
read_time: "15 min lectura"
|
||
|
|
category: "DevOps"
|
||
|
|
difficulty: "Avanzado"
|
||
|
|
tags: ["ci-cd", "gitlab", "docker", "kubernetes", "devops"]
|
||
|
|
featured: true
|
||
|
|
language: "es"
|
||
|
|
translations: ["en"]
|
||
|
|
---
|
||
|
|
EOF
|
||
|
|
|
||
|
|
echo "Script ready to apply updates"
|