X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=ee130dcb7be0562e9dd1578a5efff25cf5087418;hb=6d01b1cb797bb2b47115eee21ad7d1a6ff3fcfe7;hp=2010fae52a3f9951315fba769392dae363c6130d;hpb=105199ef642ffe9736ea24a01d4546578fa25e60;p=o-du%2Fl2.git diff --git a/Dockerfile b/Dockerfile index 2010fae52..ee130dcb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,18 @@ -FROM nexus3.o-ran-sc.org:10004/o-ran-sc/bldr-ubuntu18-c-go:9-u18.04 as ubuntu +FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 + +# ====================================================================== +# add netconf user +RUN \ + adduser --system netconf && \ + echo "netconf:netconf" | chpasswd + +# 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 @@ -8,3 +22,11 @@ RUN apt-get update && apt-get install -y libpcap-dev RUN cd build/odu && make clean_odu odu MACHINE=BIT64 MODE=FDD #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