Skip to content

Entorno Podman para find-a-fondo - #75

Merged
ValentinTorassa merged 1 commit into
ValentinTorassa:mainfrom
knighthw:lab/entorno-find-a-fondo
Oct 25, 2026
Merged

ValentinTorassa merged 1 commit into
ValentinTorassa:mainfrom
knighthw:lab/entorno-find-a-fondo

Conversation

@knighthw

Copy link
Copy Markdown
Contributor

Qué hace este PR

Suma un entorno con Podman para linux-real/find-a-fondo. El árbol de práctica usa touch -d y head -c 2M, que son de GNU y fallan en macOS; el entorno lo trae armado y el lab se practica igual en cualquier máquina.

Closes #71

Qué cambia

Entorno en entornos/linux-real/find-a-fondo/, con grep-a-fondo como modelo:

  • armar-lab-find.sh arma ~/lab-find con el mismo bloque del lab, así las salidas de la página coinciden con las del contenedor.
  • arranque.sh lo corre al arrancar el contenedor, no al construir la imagen. Si se armara en el build, las fechas quedarían fijas y -mtime -1 dejaría de devolver lo que dice la página a los pocos días de csmo patrón de ENTRYPOINT queusa filesystem-real.
  • lab-check revisa que ~/evidencia/evidencia-find.txt tenga un find por tamaño (-size), uno por fecha (-mtio (-type), y el reto: un solofindcon-size, -mtimey-exec ls -lhcuya salida muestraviejo/grande.bincon2.0M`.

Lab (find-a-fondo.mdx):

  • environment: en el frontmatra de entornos/README.md.
  • La evidencia pasa de ~/evidencia.txt a ~/evidencia/evidencia-find.txt, con el patrón echo '$ comando' + salida para que lab-check vea los comandos, como en grep-a-fondo.
  • «Armá la carpeta de práctica»uede saltear, y la nota de-mtime -1 dice que en el entorno alcanza con abrir un contenedor nuevo.
  • En prerequisites sumé «o el entorno del lab con Podman o Docker».

Cómo lo verifiqué

  • npm run lab:env -- smoke linn Docker (no tengo Podman):recién creado lab-checksale 1 (0 de 6) y consolucion.sh` sale 0 (6 de 6).
  • Corrí los 13 find de la página adentro del contenedor: las salidas coinciden, solo cambia el orden, que el lab ya avisa q

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 fictie (ver /contribuir)
  • Si toca datos (certs, portfolio, paths): los ids referenciados existen (el build lo valida)

The practice tree uses touch -d and head -c 2M, which are GNU-only and
fail on macOS. The environment ships it ready, so the lab works the
same on any machine.

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

- armar-lab-find.sh builds ~/lab-find with the same block as the lab.
  arranque.sh runs it when the container starts, not at build time, so
  dates are relative to when you open it and -mtime -1 matches the page
  even if the image is days old.
- lab-check looks for a find by size, by date and by type in
  ~/evidencia/evidencia-find.txt, and checks the challenge: one find
  with -size, -mtime and -exec ls -lh that shows viejo/grande.bin.
- The smoke test passes with Docker: lab-check fails on a fresh
  container and passes with solucion.sh.

Lab changes:

- environment: in the frontmatter, and the setup step says it can be
  skipped inside the environment.
- Evidence moves from ~/evidencia.txt to ~/evidencia/evidencia-find.txt,
  with the echo '$ command' pattern so lab-check can see the commands.
- Drop its "Pendiente" row from entornos/README.md.
@vercel

vercel Bot commented Oct 23, 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 ValentinTorassa left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probé el entorno con Docker: recién creado lab-check sale 1 y con solucion.sh sale 0. Sigue el patrón de grep-a-fondo. ¡Gracias!

@ValentinTorassa
ValentinTorassa merged commit 3e079f9 into ValentinTorassa:main Oct 25, 2026
4 of 5 checks passed
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.

Entorno Podman para find-a-fondo

2 participants