1 FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0
3 # ======================================================================
6 adduser --system netconf && \
7 echo "netconf:netconf" | chpasswd
9 # generate ssh keys for netconf user
11 mkdir -p /home/netconf/.ssh && \
13 ssh-keygen -t dsa -P '' -f /home/netconf/.ssh/id_dsa && \
14 cat /home/netconf/.ssh/id_dsa.pub > /home/netconf/.ssh/authorized_keys
20 RUN apt-get update && apt-get install -y libpcap-dev
22 RUN cd build/odu && make clean_odu odu MACHINE=BIT64 MODE=FDD
24 RUN cd build/odu && make clean_odu odu MACHINE=BIT64 MODE=TDD
25 #CMD /opt/o-du-l2/bin/odu/odu
27 #cleanup netconf folder and install libraries
28 RUN cd build/scripts && /bin/bash install_lib.sh -c
30 # Install the data models based on the ODU yang model
31 RUN /usr/local/bin/sysrepoctl -i build/yang/o-ran-sc-odu-alarm-v1.yang
33 RUN cd build/odu && make clean_odu odu MACHINE=BIT64 MODE=FDD O1_ENABLE=YES