X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=Dockerfile;fp=Dockerfile;h=c6a87d25b7f957bec19cf5fa0cdc330843af50ef;hp=0000000000000000000000000000000000000000;hb=78b7d242c085573175a20949d3208a63b44fc515;hpb=5ed6345902100aa6fc7d9528f5c8abdc0d3f0e3f diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c6a87d2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,42 @@ +################################################################################ +# Copyright (c) 2019 AT&T Intellectual Property. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ +FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu16-c-go:2-u16.04-nng as ubuntu + +WORKDIR /opt/o-du/phy +COPY . . + +ENV XRAN_DIR /opt/o-du/phy/fhi_lib +ENV BUILD_GCC 1 + +RUN apt-get update &&\ + apt-get install -y wget libnuma-dev linux-headers-generic libgtest-dev +# because we run in VM which may be linuxkit kernel. Faking for "regular" kernel +RUN cp -r /lib/modules/$(ls -1 /lib/modules | head -1) /lib/modules/$(uname -r) + +RUN wget https://github.com/google/googletest/archive/v1.8.x.zip && \ + unzip v1.8.x.zip +ENV GTEST_ROOT /opt/o-du/phy/googletest-1.8.x + +ENV RTE_TARGET x86_64-native-linuxapp-gcc +ENV RTE_SDK /opt/o-du/dpdk-18.08 +RUN wget http://fast.dpdk.org/rel/dpdk-18.08.1.tar.xz && \ + tar -xf dpdk-18.08.1.tar.xz && \ + mv dpdk-stable-18.08.1 $RTE_SDK && \ + cd $RTE_SDK && \ + make install T="$RTE_TARGET" + +RUN cd fhi_lib/lib && \ + bash ./build_ci.sh