Add Dockerfile for building the library
[o-du/phy.git] / example_odulow_build.txt
1 #! /bin/bash
2 # This is an example on how the different dependencies of the odulow fhi_lib can be brought into a build server
3 # which currently is the only module being built under odulow.
4 # In the example illustrated here we use a Centos OS in the server so the user should adopt the proper procedures
5 # for their target OS if it is different than Centos
6 cd /etc/yum.repos.d/
7 mkdir backup;
8 mv *.repo backup;
9
10 curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
11 yum makecache
12
13 yum install vim gcc-c++ libhugetlbfs* libstdc++* kernel-devel numa* gcc git mlocate xorg-x11-server-Xorg -y
14 cd /home
15 mkdir odu_low_test
16 cd /home/odu_low_test 
17
18 wget http://fast.dpdk.org/rel/dpdk-18.08.1.tar.xz
19 xz -d dpdk-18.08.1.tar.xz
20 tar -xvf dpdk-18.08.1.tar
21 mv dpdk-stable-18.08.1 dpdk-18.08
22
23 cd dpdk-18.08/usertools/
24
25 ./dpdk-setup.sh<<EOF
26 15
27 35
28 EOF
29
30 # After the dependencies have been brought in we can clone the ORAN repository, this step requires the user to provide credentials
31 git clone "https://gerrit.o-ran-sc.org/r/o-du/phy"
32 #
33 # The next step is to define the global variables used by the continous integration build shell script
34 # and the odulow Front Haul Library makefile
35 # In this example we are building the fhi_lib using gcc and the testapp is not being built.
36
37 export XRAN_DIR=/home/odu_low_test/phy/fhi_lib
38 export RTE_SDK=/home/odu_low_test/dpdk-18.08
39 export RTE_TARGET=x86_64-native-linuxapp-gcc
40 export BUILD_GCC=1
41 cd phy/fhi_lib
42 chmod 777 build_ci.sh
43 ./build_ci.sh
44