labctl
войти регистрация

Create a marker file

имя
marker
образ
python:3.12-slim
таймаут
30с
проверка…

Задание

Marker file

Create a file at /tmp/target.txt containing exactly the word hello
(no trailing newline, no extra whitespace).

Why

This is the simplest lab that exercises the full pipeline:
isolated container → student changes file system state → checker validates
state → feedback is returned.

How to verify locally

docker run --rm -it python:3.12-slim bash
# inside the container:
echo -n hello > /tmp/target.txt
Подсказки

Hints: marker file

  • echo -n hello > /tmp/target.txt writes the word hello without a trailing
    newline. Drop -n and the file will contain hello\n and the check will
    fail on the trailing whitespace.
  • The check reads the file and strips surrounding whitespace, but the content
    between must be exactly the expected word.
  • If you see "file does not exist", confirm the path is /tmp/target.txt
    (lowercase, no extension other than .txt).

Последние попытки

  • Загрузка…

Разовый запуск (smoke-тест)

Атомарный цикл up → check → down. Полезно для CI; без предварительной подготовки состояния проверка завершится с ошибкой.