# limitations under the License.
#----------------------------------------------------------
-FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu18-c-go:4-u18.04-nng AS o1mediator-build
+FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 AS o1mediator-build
RUN apt-get update -y && apt-get install -y jq \
git \
build-essential \
vim \
supervisor \
- libpcre3-dev \
+ libpcre2-dev \
pkg-config \
libavl-dev \
libev-dev \
make -j2 && \
make install && \
ldconfig
-
# sysrepo
RUN \
cd /opt/dev && \
make install && make sr_clean && \
ldconfig
+# libssh 0.8.0
+RUN \
+ cd /opt/dev && \
+ git clone https://git.libssh.org/projects/libssh.git && cd libssh && \
+ mkdir build && cd build && \
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE="Release" -DWITH_ZLIB=ON -DWITH_NACL=OFF -DWITH_PCAP=OFF .. && \
+ make -j2 && \
+ make install
+
# libnetconf2
RUN \
cd /opt/dev && \
RUN \
cd /opt/dev && \
git clone https://github.com/CESNET/Netopeer2.git && \
- cd Netopeer2/server && mkdir build && cd build && \
+ cd Netopeer2 && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE:String="Release" -DNP2SRV_DATA_CHANGE_TIMEOUT=30000 -DNP2SRV_DATA_CHANGE_WAIT=ON .. && \
make -j2 && \
- make install && \
- cd ../../cli && mkdir build && cd build && \
- cmake -DCMAKE_BUILD_TYPE:String="Release" .. && \
- make -j2 && \
make install
# ======================================================================
# RMR
-ARG RMRVERSION=3.6.3
-ARG RMRLIBURL=https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb
-ARG RMRDEVURL=https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb
+ARG RMRVERSION=4.7.4
+ARG RMRLIBURL=https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb
+ARG RMRDEVURL=https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb
RUN wget --content-disposition ${RMRLIBURL} && dpkg -i rmr_${RMRVERSION}_amd64.deb
RUN wget --content-disposition ${RMRDEVURL} && dpkg -i rmr-dev_${RMRVERSION}_amd64.deb
RUN /usr/local/bin/sysrepoctl -i /go/src/ws/agent/yang/o-ran-sc-ric-xapp-desc-v1.yang
RUN /usr/local/bin/sysrepoctl -i /go/src/ws/agent/yang/o-ran-sc-ric-ueec-config-v1.yang
RUN /usr/local/bin/sysrepoctl -i /go/src/ws/agent/yang/o-ran-sc-ric-gnb-status-v1.yang
+RUN /usr/local/bin/sysrepoctl -i /go/src/ws/agent/yang/o-ran-sc-ric-alarm-v1.yang
CMD ["/bin/bash"]
supervisor \
openssl \
python-pip \
- libpcre3-dev \
+ libpcre2-dev \
pkg-config \
libavl-dev \
libev-dev \
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
+# update password policy
+RUN \
+ sed -i 's/pam_unix.so obscure sha512/pam_unix.so obscure sha512 rounds=12000/' /etc/pam.d/common-password
+
# add netconf user
RUN \
adduser --system netconf && \