[DOCKER] adding new parameter on eNB side, fixing the LTE-UE entrypoint
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
#
|
#
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
|
||||||
FROM localhost/ran-build:latest AS enb-build
|
FROM ran-build:latest AS enb-build
|
||||||
|
|
||||||
RUN rm -Rf /oai-ran
|
RUN rm -Rf /oai-ran
|
||||||
WORKDIR /oai-ran
|
WORKDIR /oai-ran
|
||||||
@@ -41,11 +41,6 @@ RUN yum install -y python3-pip && \
|
|||||||
pip3 install --ignore-installed pyyaml && \
|
pip3 install --ignore-installed pyyaml && \
|
||||||
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/enb_parameters.yaml
|
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/enb_parameters.yaml
|
||||||
|
|
||||||
# debug
|
|
||||||
#RUN ldconfig -v && ldd /oai-ran/targets/bin/lte-softmodem.Rel15
|
|
||||||
#RUN ls -ls /oai-ran/targets/bin
|
|
||||||
#RUN ls -ls /oai-ran/cmake_targets/ran_build/build/*.so
|
|
||||||
|
|
||||||
#start from scratch for target executable
|
#start from scratch for target executable
|
||||||
FROM registry.access.redhat.com/ubi8/ubi:latest as oai-enb
|
FROM registry.access.redhat.com/ubi8/ubi:latest as oai-enb
|
||||||
|
|
||||||
@@ -98,17 +93,6 @@ COPY --from=enb-build /usr/local/lib64/libuhd.so.4.0.0 /usr/local/lib64
|
|||||||
|
|
||||||
RUN ldconfig
|
RUN ldconfig
|
||||||
|
|
||||||
#debug
|
|
||||||
#RUN ldd /usr/local/lib/liboai_eth_transpro.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/libtcp_bridge_oai.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/librfsimulator.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/liboai_usrpdevif.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/libcoding.so
|
|
||||||
#RUN ldd /usr/local/lib/libparams_libconfig.so
|
|
||||||
#RUN ldd /usr/local/lib/libdfts.so
|
|
||||||
#RUN ldd /usr/local/lib/liboai_iqplayer.so
|
|
||||||
#RUN ldd /opt/oai-enb/bin/lte-softmodem.Rel15
|
|
||||||
|
|
||||||
# Copy the relevant configuration files for eNB
|
# Copy the relevant configuration files for eNB
|
||||||
WORKDIR /opt/oai-enb/etc
|
WORKDIR /opt/oai-enb/etc
|
||||||
COPY --from=enb-build /oai-ran/docker/etc .
|
COPY --from=enb-build /oai-ran/docker/etc .
|
||||||
|
|||||||
@@ -41,11 +41,6 @@ RUN apt-get install -y python3-pip && \
|
|||||||
pip3 install --ignore-installed pyyaml && \
|
pip3 install --ignore-installed pyyaml && \
|
||||||
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/enb_parameters.yaml
|
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/enb_parameters.yaml
|
||||||
|
|
||||||
# debug
|
|
||||||
#RUN ldconfig -v && ldd /oai-ran/targets/bin/lte-softmodem.Rel15
|
|
||||||
#RUN ls -ls /oai-ran/targets/bin
|
|
||||||
#RUN ls -ls /oai-ran/cmake_targets/ran_build/build/*.so
|
|
||||||
|
|
||||||
#start from scratch for target executable
|
#start from scratch for target executable
|
||||||
FROM ubuntu:bionic as oai-enb
|
FROM ubuntu:bionic as oai-enb
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
@@ -98,17 +93,6 @@ COPY --from=enb-build /usr/local/lib/libprotobuf-c.so.1 .
|
|||||||
|
|
||||||
RUN ldconfig
|
RUN ldconfig
|
||||||
|
|
||||||
#debug
|
|
||||||
#RUN ldd /usr/local/lib/liboai_eth_transpro.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/libtcp_bridge_oai.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/librfsimulator.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/liboai_usrpdevif.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/libcoding.so
|
|
||||||
#RUN ldd /usr/local/lib/libparams_libconfig.so
|
|
||||||
#RUN ldd /usr/local/lib/libdfts.so
|
|
||||||
#RUN ldd /usr/local/lib/liboai_iqplayer.so
|
|
||||||
#RUN ldd /opt/oai-enb/bin/lte-softmodem.Rel15
|
|
||||||
|
|
||||||
# Copy the relevant configuration files for eNB
|
# Copy the relevant configuration files for eNB
|
||||||
WORKDIR /opt/oai-enb/etc
|
WORKDIR /opt/oai-enb/etc
|
||||||
COPY --from=enb-build /oai-ran/docker/etc .
|
COPY --from=enb-build /oai-ran/docker/etc .
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#
|
#
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
|
||||||
FROM localhost/ran-build:latest AS lte-ue-build
|
FROM ran-build:latest AS lte-ue-build
|
||||||
|
|
||||||
RUN rm -Rf /oai-ran
|
RUN rm -Rf /oai-ran
|
||||||
WORKDIR /oai-ran
|
WORKDIR /oai-ran
|
||||||
@@ -39,12 +39,8 @@ RUN /bin/sh oaienv && \
|
|||||||
|
|
||||||
RUN yum install -y python3-pip && \
|
RUN yum install -y python3-pip && \
|
||||||
pip3 install --ignore-installed pyyaml && \
|
pip3 install --ignore-installed pyyaml && \
|
||||||
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_parameters.yaml
|
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_parameters.yaml && \
|
||||||
|
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_sim_parameters.yaml
|
||||||
# debug
|
|
||||||
#RUN ldconfig -v && ldd /oai-ran/targets/bin/lte-uesoftmodem.Rel15
|
|
||||||
#RUN ls -lst /oai-ran/targets/bin
|
|
||||||
#RUN ls -lst /oai-ran/cmake_targets/ran_build/build/*.so
|
|
||||||
|
|
||||||
#start from scratch for target executable
|
#start from scratch for target executable
|
||||||
FROM registry.access.redhat.com/ubi8/ubi:latest as oai-lte-ue
|
FROM registry.access.redhat.com/ubi8/ubi:latest as oai-lte-ue
|
||||||
@@ -63,12 +59,10 @@ RUN yum update -y && \
|
|||||||
|
|
||||||
WORKDIR /opt/oai-lte-ue/bin
|
WORKDIR /opt/oai-lte-ue/bin
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/lte-uesoftmodem.Rel15 .
|
COPY --from=lte-ue-build /oai-ran/targets/bin/lte-uesoftmodem.Rel15 .
|
||||||
|
COPY --from=lte-ue-build /oai-ran/docker/scripts/lte_ue_entrypoint.sh entrypoint.sh
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/conf2uedata .
|
COPY --from=lte-ue-build /oai-ran/targets/bin/conf2uedata .
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/nvram .
|
COPY --from=lte-ue-build /oai-ran/targets/bin/nvram .
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/usim .
|
COPY --from=lte-ue-build /oai-ran/targets/bin/usim .
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/.ue_emm.nvram0 .
|
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/.ue.nvram0 .
|
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/.usim.nvram0 .
|
|
||||||
|
|
||||||
WORKDIR /usr/local/lib/
|
WORKDIR /usr/local/lib/
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/liboai_eth_transpro.so.Rel15 .
|
COPY --from=lte-ue-build /oai-ran/targets/bin/liboai_eth_transpro.so.Rel15 .
|
||||||
@@ -103,25 +97,10 @@ COPY --from=lte-ue-build /usr/local/lib64/libuhd.so.4.0.0 /usr/local/lib64
|
|||||||
|
|
||||||
RUN ldconfig
|
RUN ldconfig
|
||||||
|
|
||||||
#debug
|
# Copy the relevant configuration files for UE
|
||||||
#RUN ldd /opt/oai-lte-ue/bin/lte-uesoftmodem.Rel15
|
|
||||||
#RUN ldd /opt/oai-lte-ue/bin/conf2uedata
|
|
||||||
#RUN ldd /opt/oai-lte-ue/bin/nvram
|
|
||||||
#RUN ldd /opt/oai-lte-ue/bin/usim
|
|
||||||
#RUN ldd /usr/local/lib/liboai_eth_transpro.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/libtcp_bridge_oai.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/librfsimulator.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/liboai_usrpdevif.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/libcoding.so
|
|
||||||
#RUN ldd /usr/local/lib/libparams_libconfig.so
|
|
||||||
#RUN ldd /usr/local/lib/libSIMU.so
|
|
||||||
#RUN ldd /usr/local/lib/libdfts.so
|
|
||||||
|
|
||||||
# Copy the relevant configuration files for eNB
|
|
||||||
WORKDIR /opt/oai-lte-ue/etc
|
WORKDIR /opt/oai-lte-ue/etc
|
||||||
COPY --from=lte-ue-build /oai-ran/ci-scripts/conf_files/ue.* .
|
COPY --from=lte-ue-build /oai-ran/docker/etc .
|
||||||
|
|
||||||
WORKDIR /opt/oai-lte-ue
|
WORKDIR /opt/oai-lte-ue
|
||||||
#CMD ["/opt/oai-lte-ue/bin/lte-uesoftmodem", "-O", "/opt/oai-lte-ue/etc/enb.conf"]
|
CMD ["/opt/oai-lte-ue/bin/lte-uesoftmodem.Rel15"]
|
||||||
#ENTRYPOINT ["/opt/oai-lte-ue/bin/entrypoint.sh"]
|
ENTRYPOINT ["/opt/oai-lte-ue/bin/entrypoint.sh"]
|
||||||
CMD ["sleep", "infinity"]
|
|
||||||
|
|||||||
@@ -39,13 +39,8 @@ RUN /bin/sh oaienv && \
|
|||||||
|
|
||||||
RUN apt-get install -y python3-pip && \
|
RUN apt-get install -y python3-pip && \
|
||||||
pip3 install --ignore-installed pyyaml && \
|
pip3 install --ignore-installed pyyaml && \
|
||||||
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_parameters.yaml
|
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_parameters.yaml && \
|
||||||
|
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_sim_parameters.yaml
|
||||||
# debug
|
|
||||||
#RUN ldconfig -v
|
|
||||||
#RUN ldd /oai-ran/targets/bin/lte-uesoftmodem.Rel15
|
|
||||||
#RUN ls -lst /oai-ran/targets/bin
|
|
||||||
#RUN ls -lst /oai-ran/cmake_targets/ran_build/build/*.so
|
|
||||||
|
|
||||||
#start from scratch for target executable
|
#start from scratch for target executable
|
||||||
FROM ubuntu:bionic as oai-lte-ue
|
FROM ubuntu:bionic as oai-lte-ue
|
||||||
@@ -84,9 +79,6 @@ COPY --from=lte-ue-build /oai-ran/docker/scripts/lte_ue_entrypoint.sh entrypoint
|
|||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/conf2uedata .
|
COPY --from=lte-ue-build /oai-ran/targets/bin/conf2uedata .
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/nvram .
|
COPY --from=lte-ue-build /oai-ran/targets/bin/nvram .
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/usim .
|
COPY --from=lte-ue-build /oai-ran/targets/bin/usim .
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/.ue_emm.nvram0 .
|
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/.ue.nvram0 .
|
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/.usim.nvram0 .
|
|
||||||
|
|
||||||
WORKDIR /usr/local/lib/
|
WORKDIR /usr/local/lib/
|
||||||
COPY --from=lte-ue-build /oai-ran/targets/bin/liboai_eth_transpro.so.Rel15 .
|
COPY --from=lte-ue-build /oai-ran/targets/bin/liboai_eth_transpro.so.Rel15 .
|
||||||
@@ -105,20 +97,6 @@ COPY --from=lte-ue-build /usr/local/lib/libprotobuf-c.so.1 .
|
|||||||
|
|
||||||
RUN ldconfig
|
RUN ldconfig
|
||||||
|
|
||||||
#debug
|
|
||||||
#RUN ldd /opt/oai-lte-ue/bin/lte-uesoftmodem.Rel15
|
|
||||||
#RUN ldd /opt/oai-lte-ue/bin/conf2uedata
|
|
||||||
#RUN ldd /opt/oai-lte-ue/bin/nvram
|
|
||||||
#RUN ldd /opt/oai-lte-ue/bin/usim
|
|
||||||
#RUN ldd /usr/local/lib/liboai_eth_transpro.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/libtcp_bridge_oai.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/librfsimulator.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/liboai_usrpdevif.so.Rel15
|
|
||||||
#RUN ldd /usr/local/lib/libcoding.so
|
|
||||||
#RUN ldd /usr/local/lib/libparams_libconfig.so
|
|
||||||
#RUN ldd /usr/local/lib/libSIMU.so
|
|
||||||
#RUN ldd /usr/local/lib/libdfts.so
|
|
||||||
|
|
||||||
# Copy the relevant configuration files for UE
|
# Copy the relevant configuration files for UE
|
||||||
WORKDIR /opt/oai-lte-ue/etc
|
WORKDIR /opt/oai-lte-ue/etc
|
||||||
COPY --from=lte-ue-build /oai-ran/docker/etc .
|
COPY --from=lte-ue-build /oai-ran/docker/etc .
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
PREFIX=/opt/oai-enb
|
PREFIX=/opt/oai-enb
|
||||||
|
RRC_INACTIVITY_THRESHOLD=${RRC_INACTIVITY_THRESHOLD:-0}
|
||||||
|
|
||||||
# Based another env var, pick one template to use
|
# Based another env var, pick one template to use
|
||||||
if [[ -v USE_FDD_CU ]]; then ln -s $PREFIX/etc/cu.fdd.conf $PREFIX/etc/enb.conf; fi
|
if [[ -v USE_FDD_CU ]]; then ln -s $PREFIX/etc/cu.fdd.conf $PREFIX/etc/enb.conf; fi
|
||||||
|
|||||||
@@ -159,6 +159,8 @@
|
|||||||
env: "@ENB_S1U_IP_ADDRESS@"
|
env: "@ENB_S1U_IP_ADDRESS@"
|
||||||
- key: ENB_IPV4_ADDRESS_FOR_X2C
|
- key: ENB_IPV4_ADDRESS_FOR_X2C
|
||||||
env: "@ENB_X2_IP_ADDRESS@"
|
env: "@ENB_X2_IP_ADDRESS@"
|
||||||
|
- key: rrc_inactivity_threshold
|
||||||
|
env: "@RRC_INACTIVITY_THRESHOLD@"
|
||||||
- key: FLEXRAN_ENABLED
|
- key: FLEXRAN_ENABLED
|
||||||
env: "@FLEXRAN_ENABLED@"
|
env: "@FLEXRAN_ENABLED@"
|
||||||
- key: FLEXRAN_INTERFACE_NAME
|
- key: FLEXRAN_INTERFACE_NAME
|
||||||
|
|||||||
Reference in New Issue
Block a user