Skip to content

Commit

Permalink
fix NEAR_RIC_IP env
Browse files Browse the repository at this point in the history
  • Loading branch information
muriloAvlis committed Jun 11, 2024
1 parent d1a394a commit 3cf5dd9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configs/xApp.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[NEAR-RIC]
NEAR_RIC_IP = ${NEAR_RIC_IP}
NEAR_RIC_IP = 127.0.0.1

[XAPP]
DB_DIR = /tmp/
DB_NAME = iqos_xapp_db
DB_NAME = iqos_xapp_db
7 changes: 5 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ COPY out/bin/xapp_iqos /usr/local/bin/xapp_iqos

## Copy Config file
COPY configs/xApp.conf /usr/local/etc/flexric/flexric.conf
# RUN sed -i "s/NEAR_RIC_IP = 127.0.0.1/NEAR_RIC_IP = ${NEAR_RIC_IP}/g" /usr/local/etc/flexric/flexric.conf

## Copy initialization script
COPY scripts/run.sh /run.sh
RUN chmod +x /run.sh

RUN ldconfig && \
echo "--- Check shared objects dependencies for executable nearRT-RIC ---" && \
Expand All @@ -53,4 +56,4 @@ LABEL br.ufpa.gercom.image.title="IQoS-xApp" \
## E42 -- xApp
EXPOSE 36422/sctp

CMD ["stdbuf", "-o0", "xapp_iqos"]
ENTRYPOINT ["/run.sh"]
7 changes: 7 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

## Setup RIC IP
sed -i "s/NEAR_RIC_IP = 127.0.0.1/NEAR_RIC_IP = ${NEAR_RIC_IP}/g" /usr/local/etc/flexric/flexric.conf

## Exec xApp bin
stdbuf -o0 xapp_iqos

0 comments on commit 3cf5dd9

Please sign in to comment.