#!/bin/bash # REV-LUNES · EJ1 sobre unified_20261101 (código 93b4f8f). Uso: run.sh . Contenedor rev-lunes-ej1-NN, -m 6g, --cpus 3, # sin red, --init, timeout dentro; datos :ro; escribe solo en lunes_2nov/ej1. Se lanza con operacion/pesado.sh. set -euo pipefail W=/revision/lunes_2nov/ej1 IMAGEN=${IMAGEN:-buscalicitaciones-etl:v2} NN=$1; S=$2; shift 2 echo "$(date '+%F %H:%M:%S') rev-lunes-ej1-$NN $S $IMAGEN" >> $W/tmp/contenedores.log exec docker run --rm -i --init -m ${MEM:-2g} --memory-swap ${MEM:-2g} --cpus 3 --network none --user 1000:1000 --name "rev-lunes-ej1-$NN" \ -e HOME=/w/tmp -e PYTHONDONTWRITEBYTECODE=1 \ -v /:/d:ro -v $W:/w \ --entrypoint timeout $IMAGEN ${TMO:-3000} python3 /w/py/$S "$@"