From 62ca5cdacefc1df4dbfafad05087649f1bfedf79 Mon Sep 17 00:00:00 2001 From: wrider Date: Fri, 15 Nov 2019 10:59:30 -0500 Subject: [PATCH] Modified Dockerfiles for LF CI integration Signed-off-by: wrider Change-Id: I30ae507983091ba8f048ae2a33b6e831191b822d --- .gitreview | 5 +++++ Dockerfile | 10 ++++++---- Dockerfile-cu-stub | 10 ++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 .gitreview create mode 100644 Dockerfile-cu-stub 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 -- 2.16.6