Update of Dockerfile to build ns-o-ran and to rebuild e2interface

This commit is contained in:
Andrea Lacava 2022-11-02 01:13:25 +01:00
parent 0849c7769a
commit b2c654518e
2 changed files with 10 additions and 10 deletions

View File

@ -22,17 +22,17 @@ ARG log_level_e2sim=2
# log_level_e2sim = 3 -> LOG_LEVEL_DEBUG 3 # log_level_e2sim = 3 -> LOG_LEVEL_DEBUG 3
# Install E2sim # Install E2sim
RUN mkdir -p /workspace/e2sim RUN mkdir -p /workspace
RUN apt-get update && apt-get install -y build-essential git cmake libsctp-dev autoconf automake libtool bison flex libboost-all-dev RUN apt-get update && apt-get install -y build-essential git cmake libsctp-dev autoconf automake libtool bison flex libboost-all-dev
WORKDIR /workspace/e2sim WORKDIR /workspace
COPY ./e2sim/e2sim /workspace/e2sim RUN git clone -b develop https://github.com/wineslab/ns-o-ran-e2-sim /workspace/e2sim
RUN mkdir /workspace/e2sim/build
WORKDIR /workspace/e2sim/build
RUN mkdir /workspace/e2sim/e2sim/build
WORKDIR /workspace/e2sim/e2sim/build
RUN cmake .. -DDEV_PKG=1 -DLOG_LEVEL=${log_level_e2sim} RUN cmake .. -DDEV_PKG=1 -DLOG_LEVEL=${log_level_e2sim}
RUN make package RUN make package
RUN echo "Going to install e2sim-dev" RUN echo "Going to install e2sim-dev"
RUN dpkg --install ./e2sim-dev_1.0.0_amd64.deb RUN dpkg --install ./e2sim-dev_1.0.0_amd64.deb
@ -43,13 +43,13 @@ WORKDIR /workspace
# Install ns-3 # Install ns-3
RUN apt-get install -y g++ python3 qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools RUN apt-get install -y g++ python3 qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
COPY ./ns3-mmwave-oran /workspace/ns3-mmwave-oran RUN git clone -b release https://github.com/wineslab/ns-o-ran-ns3-mmwave /workspace/ns3-mmwave-oran
COPY ./ns-o-ran /workspace/ns3-mmwave-oran/contrib/oran-interface RUN git clone -b master https://github.com/o-ran-sc/sim-ns3-o-ran-e2 /workspace/ns3-mmwave-oran/contrib/oran-interface
WORKDIR /workspace/ns3-mmwave-oran WORKDIR /workspace/ns3-mmwave-oran
RUN ./waf configure --enable-tests --enable-examples RUN ./waf configure --enable-tests --enable-examples
# RUN ./waf build RUN ./waf build
WORKDIR /workspace WORKDIR /workspace

View File

@ -20,7 +20,7 @@
# This source code is part of the near-RT RIC (RAN Intelligent Controller) # This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP). # platform project (RICP).
# #
FROM nexus3.o-ran-sc.org:10004/o-ran-sc/bldr-ubuntu18-c-go:9-u18.04 as ubuntu FROM wineslab/o-ran-sc-bldr-ubuntu18-c-go:9-u18.04 as ubuntu
WORKDIR /opt/e2/ WORKDIR /opt/e2/