Code Review
/
ric-plt
/
o1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
updating to ubuntu20
[ric-plt/o1.git]
/
Dockerfile
diff --git
a/Dockerfile
b/Dockerfile
index
d79ae77
..
17cc7c4
100755
(executable)
--- a/
Dockerfile
+++ b/
Dockerfile
@@
-14,7
+14,12
@@
# limitations under the License.
#----------------------------------------------------------
# limitations under the License.
#----------------------------------------------------------
-FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 AS o1mediator-build
+FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu20-c-go:1.0.0 AS o1mediator-build
+
+RUN apt update && apt install --reinstall -y \
+ ca-certificates \
+ && \
+ update-ca-certificates
RUN apt-get update -y && apt-get install -y jq \
git \
RUN apt-get update -y && apt-get install -y jq \
git \
@@
-33,8
+38,10
@@
RUN apt-get update -y && apt-get install -y jq \
swig \
iputils-ping \
python-dev
swig \
iputils-ping \
python-dev
-
-ENV PATH="/usr/local/go/bin:${PATH}"
+#ENV GOLANG_VERSION 1.13.10
+#RUN wget --quiet https://dl.google.com/go/go$GOLANG_VERSION.linux-amd64.tar.gz \
+# && tar xvzf go$GOLANG_VERSION.linux-amd64.tar.gz -C /usr/local
+#ENV PATH="/usr/local/go/bin:${PATH}"
ENV GOPATH="/go"
# ======================================================================
ENV GOPATH="/go"
# ======================================================================
@@
-58,17
+65,16
@@
WORKDIR /opt/dev
# libyang
RUN \
cd /opt/dev && \
# libyang
RUN \
cd /opt/dev && \
- git clone https://github.com/CESNET/libyang.git && \
+ git clone
-b libyang1
https://github.com/CESNET/libyang.git && \
cd libyang && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE:String="Release" -DENABLE_BUILD_TESTS=OFF .. && \
make -j2 && \
make install && \
ldconfig
cd libyang && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE:String="Release" -DENABLE_BUILD_TESTS=OFF .. && \
make -j2 && \
make install && \
ldconfig
-
# sysrepo
RUN \
cd /opt/dev && \
# sysrepo
RUN \
cd /opt/dev && \
- git clone https://github.com/sysrepo/sysrepo.git && \
+ git clone
-b libyang1
https://github.com/sysrepo/sysrepo.git && \
cd sysrepo && sed -i -e 's/2000/30000/g;s/5000/30000/g' src/common.h.in && \
mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE:String="Release" -DENABLE_TESTS=OFF -DREPOSITORY_LOC:PATH=/etc/sysrepo .. && \
cd sysrepo && sed -i -e 's/2000/30000/g;s/5000/30000/g' src/common.h.in && \
mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE:String="Release" -DENABLE_TESTS=OFF -DREPOSITORY_LOC:PATH=/etc/sysrepo .. && \
@@
-88,7
+94,7
@@
RUN \
# libnetconf2
RUN \
cd /opt/dev && \
# libnetconf2
RUN \
cd /opt/dev && \
- git clone https://github.com/CESNET/libnetconf2.git && \
+ git clone
-b libyang1
https://github.com/CESNET/libnetconf2.git && \
cd libnetconf2 && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE:String="Release" -DENABLE_BUILD_TESTS=OFF .. && \
make -j2 && \
cd libnetconf2 && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE:String="Release" -DENABLE_BUILD_TESTS=OFF .. && \
make -j2 && \
@@
-98,7
+104,7
@@
RUN \
# netopeer2
RUN \
cd /opt/dev && \
# netopeer2
RUN \
cd /opt/dev && \
- git clone https://github.com/CESNET/Netopeer2.git && \
+ git clone
-b libyang1
https://github.com/CESNET/Netopeer2.git && \
cd Netopeer2 && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE:String="Release" -DNP2SRV_DATA_CHANGE_TIMEOUT=30000 -DNP2SRV_DATA_CHANGE_WAIT=ON .. && \
make -j2 && \
cd Netopeer2 && mkdir build && cd build && \
cmake -DCMAKE_BUILD_TYPE:String="Release" -DNP2SRV_DATA_CHANGE_TIMEOUT=30000 -DNP2SRV_DATA_CHANGE_WAIT=ON .. && \
make -j2 && \
@@
-107,7
+113,7
@@
RUN \
# ======================================================================
# RMR
# ======================================================================
# RMR
-ARG RMRVERSION=4.
5.2
+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
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
@@
-156,9
+162,9
@@
RUN /usr/local/bin/sysrepoctl -i /go/src/ws/agent/yang/o-ran-sc-ric-alarm-v1.yan
CMD ["/bin/bash"]
#----------------------------------------------------------
CMD ["/bin/bash"]
#----------------------------------------------------------
-FROM ubuntu:
18
.04 as o1mediator
+FROM ubuntu:
20
.04 as o1mediator
-RUN apt-get update -y && apt-get install -y jq \
+RUN apt-get update -y &&
DEBIAN_FRONTEND=noninteractive
apt-get install -y jq \
net-tools \
tcpdump \
netcat \
net-tools \
tcpdump \
netcat \
@@
-166,7
+172,7
@@
RUN apt-get update -y && apt-get install -y jq \
nano \
supervisor \
openssl \
nano \
supervisor \
openssl \
- python-pip \
+ python
3
-pip \
libpcre3-dev \
pkg-config \
libavl-dev \
libpcre3-dev \
pkg-config \
libavl-dev \
@@
-183,6
+189,10
@@
RUN apt-get update -y && apt-get install -y jq \
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
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 && \
# add netconf user
RUN \
adduser --system netconf && \