diff --git a/deploy b/deploy new file mode 100755 index 0000000..722fe8c --- /dev/null +++ b/deploy @@ -0,0 +1,58 @@ +#!/bin/bash +cd /opt +apt update +apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev screen libtool swig +git clone https://github.com/srsran/oran-sc-ric.git +cd oran-sc-ric +docker compose up -d +cd /opt + +#install ZeroMQ +sudo apt-get install -y libzmq3-dev + +cd /opt +git clone https://github.com/zeromq/libzmq.git +cd libzmq +./autogen.sh +./configure +make -j`nproc` +sudo make install +sudo ldconfig + +cd /opt +git clone https://github.com/zeromq/czmq.git +cd czmq +./autogen.sh +./configure +make -j`nproc` +sudo make install +sudo ldconfig +#-----# +cd /opt +git clone https://github.com/srsran/srsRAN_Project/ +cd srsRAN_Project/docker +docker compose up -d --build 5gc +cd .. +mkdir build +cd build +cmake .. -DENABLE_EXPORT=ON -DENABLE_ZEROMQ=ON +make -j`nproc` +make test +cd apps/gnb +sudo screen -dmS gnb ./gnb -c /opt/oran-sc-ric/e2-agents/srsRAN/gnb_zmq.yaml + +sudo ip netns add ue1 + +#install srsRAN 4g +sudo apt-get install -y build-essential cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev +cd /opt +git clone https://github.com/srsRAN/srsRAN_4G.git +cd srsRAN_4G +mkdir build +cd build +cmake ../ +make -j`nproc` +make install +srsran_install_configs.sh user +screen -dmS srsue srsue /opt/oran-sc-ric/e2-agents/srsRAN/ue_zmq.conf +