From: wrider Date: Fri, 15 Nov 2019 15:59:30 +0000 (-0500) Subject: Modified Dockerfiles for LF CI integration X-Git-Tag: 1.0.1~3 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=62ca5cdacefc1df4dbfafad05087649f1bfedf79;p=o-du%2Fl2.git Modified Dockerfiles for LF CI integration Signed-off-by: wrider Change-Id: I30ae507983091ba8f048ae2a33b6e831191b822d --- diff --git a/.gitreview b/.gitreview new file mode 100644 index 000000000..31360588c --- /dev/null +++ b/.gitreview @@ -0,0 +1,5 @@ +[gerrit] +host=gerrit.o-ran-sc.org +port=29418 +project=o-du/l2 +defaultbranch=master diff --git a/Dockerfile b/Dockerfile index c41d6ec7f..eda172454 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu16-c-go:2-u16.04-nng as ubuntu -WORKDIR . +ADD . /opt/o-du-l2 +WORKDIR /opt/o-du-l2 -RUN cd ./build/odu -RUN make clean_all odu cu_stub MACHINE=BIT64 MODE=FDD -#RUN make cu_stub MACHINE=BIT64 MODE=FDD +RUN apt-get update && apt-get install -y libpcap-dev +RUN cd build/odu && make clean_all odu MACHINE=BIT64 MODE=FDD + +CMD /opt/o-du-l2/bin/odu/odu diff --git a/Dockerfile-cu-stub b/Dockerfile-cu-stub new file mode 100644 index 000000000..61148a2a1 --- /dev/null +++ b/Dockerfile-cu-stub @@ -0,0 +1,10 @@ +FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu16-c-go:2-u16.04-nng as ubuntu + +ADD . /opt/o-du-l2 +WORKDIR /opt/o-du-l2 + +RUN apt-get update && apt-get install -y libpcap-dev + +RUN cd build/odu && make clean_all cu_stub MACHINE=BIT64 MODE=FDD + +CMD /opt/o-du-l2/bin/cu_stub/cu_stub