Repository navigation
Entorno Podman para find-a-fondo - #75
Conversation
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.
|
@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
left a comment
There was a problem hiding this comment.
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!
|
@knighthw gracias otra vez por todo lo que sumaste: cinco labs de Linux Real, los entornos de |
|
Hola @ValentinTorassa , he estado ocupado y no he podido contribuir tanto como me gustaría, pero ahora reviso los issues, me encargo y agrego unas ideas más que tengo para el proyecto. saludos. |
Qué hace este PR
Suma un entorno con Podman para
linux-real/find-a-fondo. El árbol de práctica usatouch -dyhead -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/, congrep-a-fondocomo modelo:armar-lab-find.sharma~/lab-findcon el mismo bloque del lab, así las salidas de la página coinciden con las del contenedor.arranque.shlo corre al arrancar el contenedor, no al construir la imagen. Si se armara en el build, las fechas quedarían fijas y-mtime -1dejaría de devolver lo que dice la página a los pocos días de csmo patrón deENTRYPOINTqueusafilesystem-real.lab-checkrevisa que~/evidencia/evidencia-find.txttenga unfindpor 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 deentornos/README.md.~/evidencia.txta~/evidencia/evidencia-find.txt, con el patrónecho '$ comando'+ salida para quelab-checkvea los comandos, como en grep-a-fondo.-mtime -1dice que en el entorno alcanza con abrir un contenedor nuevo.prerequisitessumé «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 creadolab-checksale 1 (0 de 6) y consolucion.sh` sale 0 (6 de 6).findde la página adentro del contenedor: las salidas coinciden, solo cambia el orden, que el lab ya avisa qTipo de cambio
Checklist
npm run lab:checkpasa (si es un lab:orderlibre en su ruta y enlazado desde losnextLabsde otro)npm run lintpasa (prettier + astro check)npm run buildpasa/contribuir)