X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=cfeffb2f725da75e331975352d454d09ece7234b;hb=refs%2Fchanges%2F56%2F6056%2F4;hp=15f89a8c25797fb3fcd26aa5d7dc15514bfe3980;hpb=db0a2ee4edd328449d01ab184d253327fca950d6;p=o-du%2Fl2.git diff --git a/Dockerfile b/Dockerfile index 15f89a8c2..cfeffb2f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,18 @@ -FROM nexus3.o-ran-sc.org:10004/o-ran-sc/bldr-ubuntu18-c-go:8-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 @@ -7,4 +21,13 @@ 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 -f ../config/ssi_mem +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/scripts && /bin/bash install_lib.sh -c + +# Install the data models based on the ODU yang model +RUN /usr/local/bin/sysrepoctl -i build/yang/o-ran-sc-odu-alarm-v1.yang + +RUN cd build/odu && make clean_odu odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES