#!/bin/bash
# Run the nashem perf container
# Input:  /workspace/input/task.json  (mounted from host)
# Output: /workspace/output/result.json (mounted from host)

docker run --rm \
  --name hrt-perf-nashem \
  --privileged \
  -v /opt/hobot:/opt/hobot:ro \
  -v /usr/hobot:/usr/hobot:ro \
  -v /opt/tros:/opt/tros:ro \
  -v /lib/aarch64-linux-gnu:/host_lib/aarch64-linux-gnu:ro \
  -e LD_LIBRARY_PATH="/usr/hobot/lib:/host_lib/aarch64-linux-gnu:/lib/aarch64-linux-gnu" \
  -v $(pwd)/example_fs/input:/workspace/input:ro \
  -v $(pwd)/example_fs/output:/workspace/output \
  hrt_perf_nashem:v3.7.3
