Merge "new review to be raise"
[o-du/l2.git] / Dockerfile
1 FROM nexus3.o-ran-sc.org:10004/o-ran-sc/bldr-ubuntu18-c-go:9-u18.04 as ubuntu
2
3 # ======================================================================
4 # add netconf user
5 RUN \
6       adduser --system netconf && \
7       echo "netconf:netconf" | chpasswd
8
9 # generate ssh keys for netconf user
10 RUN \
11       mkdir -p /home/netconf/.ssh && \
12       ssh-keygen -A && \
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
15
16
17 ADD . /opt/o-du-l2
18 WORKDIR /opt/o-du-l2
19
20 RUN apt-get update && apt-get install -y libpcap-dev
21
22 RUN cd build/odu && make clean_odu odu MACHINE=BIT64 MODE=FDD
23
24 #CMD /opt/o-du-l2/bin/odu/odu
25
26 #cleanup netconf folder and install libraries
27 RUN cd build/o1  && rm -rf netconf && /bin/bash install_lib.sh -c
28
29 RUN cd build/o1  && make o1 MACHINE=BIT64
30
31 # Install the data models based on the ODU yang model
32 RUN /usr/local/bin/sysrepoctl -i build/o1/yang/o-ran-sc-odu-alarm-v1.yang