Skip to content

Add intermediate grep lab with a Podman environment - #68

Merged
ValentinTorassa merged 1 commit into
ValentinTorassa:mainfrom
knighthw:lab/linux-grep-a-fondo
Oct 23, 2026
Merged

ValentinTorassa merged 1 commit into
ValentinTorassa:mainfrom
knighthw:lab/linux-grep-a-fondo

Conversation

@knighthw

Copy link
Copy Markdown
Contributor

Qué hace este PR

Suma linux-real/grep-a-fondo, el intermedio de grep que sigue a encontrar-archivos-y-texto y acompaña a find-a-fondo, con su entorno en entornos/linux-real/grep-a-fondo.

Un servicio de juguete falló anoche y el log está lleno de ruido. El lab recorre -v, -c y -l, -w, contexto con -B/-A/-C, -E con ^ y $, -o con sort | uniq -c y -r --include, sobre logs sintéticos en ~/lab-grep.

  • Todas las salidas del lab salen de correrlo con GNU grep 3.11.
  • El quiz tiene 10 preguntas y usa mode="step".
  • order: 13, el primero libre en Linux Real. Si preferís ubicarlo justo después de find-a-fondo, movelo cuando quieras.
  • find-a-fondo lo enlaza en sus nextLabs, y este apunta a systemd-y-journalctl y a secret-scanning-token-al-repo.

Entorno:

  • La imagen arma los mismos logs que el lab con armar-logs.sh, así que las salidas de la página coinciden con las del contenedor.
  • lab-check revisa que ~/evidencia/evidencia-grep.txt tenga un grep -c, un grep con contexto y un grep -o, y el reto por su salida.
  • npm run lab:env -- smoke linux-real/grep-a-fondo pasa con Docker: lab-check falla recién creado y pasa con solucion.sh. No lo probé con Podman.

Tipo de cambio

  • Lab nuevo o mejora de contenido
  • Fix (algo estaba roto)
  • Feature / UI
  • Infra / CI / refactor

Checklist

  • npm run lab:check pasa (si es un lab: order libre en su ruta y enlazado desde los nextLabs de otro)
  • npm run lint pasa (prettier + astro check)
  • npm run build pasa
  • Si es un lab: datos ficticios, defensivo y reproducible (ver /contribuir)
  • Si toca datos (certs, portfolio, paths): los ids referenciados existen (el build lo valida)

New lab linux-real/grep-a-fondo: a toy service failed overnight and the
logs are mostly noise. Covers -v, -c and -l, -w, context with -B/-A/-C,
-E with ^ and $, -o piped into sort and uniq -c, and -r with --include,
on toy logs in ~/lab-grep.

- Every output in the lab comes from running it with GNU grep 3.11.
- The quiz has 10 questions and uses the step mode.
- Uses order 13, the first free one in Linux Real. find-a-fondo now
  links to it, and it links to systemd-y-journalctl and
  secret-scanning-token-al-repo.

Environment in entornos/linux-real/grep-a-fondo:

- The image builds the same logs as the lab with armar-logs.sh, so the
  outputs on the page match the container.
- lab-check looks for a grep -c, a context grep and a grep -o in
  ~/evidencia/evidencia-grep.txt, and checks the challenge by its output.
- The smoke test passes with Docker: lab-check fails on a fresh
  container and passes with solucion.sh.
@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

@knighthw is attempting to deploy a commit to the VT's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ValentinTorassa

Copy link
Copy Markdown
Owner

Gracias, muy buen lab. Corrí los 14 comandos de la página contra GNU grep 3.11 y todas las salidas coinciden. Los logs de la página son los mismos que arma el entorno, y lab-check pasa con la solución de referencia. Por ahora queda en order: 13. Lo mergeo. El check de Vercel falla solo porque el preview desde un fork necesita autorización.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants