#!/bin/bash # Uso: descargar.sh (contenedor pr1-fetch, con red) B=/prohibiciones set -e D=$B/interno/descargas/$2; mkdir -p $D; chmod 700 $D; touch $B/interno/registro_red.jsonl timeout 1h docker run --rm --name pr1-fetch -m 1g --memory-swap 1g --cpus 1 --user $(id -u):$(id -g) \ -v $B/py:/py:ro -v $B/$1:/lista.tsv:ro -v $B/interno/descargas:/trabajo/descargas -v $B/interno/registro_red.jsonl:/trabajo/registro_red.jsonl \ python:3.12-alpine python3 -I /py/red.py /lista.tsv /trabajo/descargas/$2