X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=dbd558df48ed3bebab8c0e1f6641ecac255a5fb6;hb=2a05694263fa633b9b051cb249d0e43128d5a760;hp=c41d6ec7fe81620955042b67d9077af613ebc392;hpb=46266658f4b9e8d15bc0e96ee426b7b6a6b04ee4;p=o-du%2Fl2.git diff --git a/Dockerfile b/Dockerfile index c41d6ec7f..dbd558df4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,33 @@ -FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu16-c-go:2-u16.04-nng as ubuntu +FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 -WORKDIR . +# ====================================================================== +# add netconf user +RUN \ + adduser --system netconf && \ + echo "netconf:netconf" | chpasswd -RUN cd ./build/odu -RUN make clean_all odu cu_stub MACHINE=BIT64 MODE=FDD -#RUN make cu_stub MACHINE=BIT64 MODE=FDD +# generate ssh keys for netconf user +RUN \ + mkdir -p /home/netconf/.ssh && \ + ssh-keygen -A && \ + ssh-keygen -t dsa -P '' -f /home/netconf/.ssh/id_dsa && \ + cat /home/netconf/.ssh/id_dsa.pub > /home/netconf/.ssh/authorized_keys + +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_odu odu MACHINE=BIT64 MODE=FDD + +RUN cd build/odu && make clean_odu odu MACHINE=BIT64 MODE=TDD +#CMD /opt/o-du-l2/bin/odu/odu + +#cleanup netconf folder and install libraries +RUN cd build/o1 && rm -rf netconf && /bin/bash install_lib.sh -c + +RUN cd build/o1 && make o1 MACHINE=BIT64 + +# Install the data models based on the ODU yang model +RUN /usr/local/bin/sysrepoctl -i build/o1/yang/o-ran-sc-odu-alarm-v1.yang