#!/bin/bash
# Run this once on the host to build the UERANSIM Docker image (~5-10 minutes).
# Usage: bash /opt/p5g-marvis/build-ueransim.sh

set -e
echo "Building UERANSIM Docker image (this takes ~5-10 minutes)..."
docker build \
    -t ueransim \
    -f /opt/p5g-marvis/Dockerfile.ueransim \
    /opt/p5g-marvis

echo ""
echo "Done! UERANSIM image built successfully."
echo ""
echo "Next step: edit credentials in /opt/p5g-marvis/config/ueransim.env"
echo "  UE_KEY=<your 32-hex-char key>"
echo "  UE_OP=<your 32-hex-char OPC>"
echo ""
echo "Then use the 'Perform Emulated Data Session' tile in P5G Marvis Minis."
