From f309868f58c7274c5bde21bba28cd390e1198db9 Mon Sep 17 00:00:00 2001 From: maki Date: Mon, 5 Jan 2026 10:14:54 +0000 Subject: [PATCH] Fix Dockerfile.nakaolab.test for flexric paths and add netcat --- docker/Dockerfile.nakaolab.test | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.nakaolab.test b/docker/Dockerfile.nakaolab.test index ece71ca748..da4a7d6822 100644 --- a/docker/Dockerfile.nakaolab.test +++ b/docker/Dockerfile.nakaolab.test @@ -49,8 +49,14 @@ RUN set -eux; \ COPY tools/scripts/traffic_runner.sh /usr/local/bin/traffic_runner RUN chmod +x /usr/local/bin/traffic_runner -COPY flexric/etc/flexric /usr/local/etc/flexric/ -COPY flexric/lib/flexric /usr/local/lib/flexric/ -RUN echo "/usr/local/lib/flexric" > /etc/ld.so.conf.d/flexric.conf && ldconfig +# FlexRIC libraries (built by --build-e2) +RUN mkdir -p /usr/local/etc/flexric /usr/local/lib/flexric && \ + cp -r /oai-ran/openair2/E2AP/flexric/build/src/lib/*.so /usr/local/lib/flexric/ 2>/dev/null || true && \ + cp -r /oai-ran/openair2/E2AP/flexric/build/src/sm/*.so /usr/local/lib/flexric/ 2>/dev/null || true && \ + cp /oai-ran/openair2/E2AP/flexric/flexric.conf /usr/local/etc/flexric/ 2>/dev/null || true && \ + echo "/usr/local/lib/flexric" > /etc/ld.so.conf.d/flexric.conf && ldconfig + +# Install netcat for antenna control testing +RUN apt-get update && apt-get install -y netcat-openbsd && rm -rf /var/lib/apt/lists/* ENTRYPOINT ["/bin/bash"] \ No newline at end of file