From: Yueh-Huan Date: Mon, 22 May 2023 13:37:56 +0000 (+0000) Subject: Solved process-state.py failed issue X-Git-Tag: 0.6.2~1 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=ric-plt%2Fo1.git;a=commitdiff_plain;h=479b96210923114e1447df1e7c409806251d0260 Solved process-state.py failed issue Change-Id: I64f55d3b39977ded56493ff999d0f401a750e52d Signed-off-by: Yueh-Huan --- diff --git a/Dockerfile b/Dockerfile index 3fe1b9f..d5dc7dc 100755 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ RUN apt-get update -y && apt-get install -y jq \ libev-dev \ libprotobuf-c-dev \ protobuf-c-compiler \ - libssh-dev \ + #libssh-dev \ libssl-dev \ swig \ iputils-ping \ @@ -82,7 +82,7 @@ RUN \ make install && make sr_clean && \ ldconfig -# libssh 0.8.0 +# libssh Newest RUN \ cd /opt/dev && \ git clone https://git.libssh.org/projects/libssh.git && cd libssh && \ @@ -113,7 +113,7 @@ RUN \ # ====================================================================== # RMR -ARG RMRVERSION=4.8.5 +ARG RMRVERSION=4.9.0 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 @@ -179,14 +179,20 @@ RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y jq \ libev-dev \ libprotobuf-c-dev \ protobuf-c-compiler \ - libssh-dev \ + #libssh-dev \ libssl-dev \ swig \ python-dev \ - && pip install supervisor-stdout \ - && pip install psutil \ + wget \ + && pip3 install supervisor-stdout \ + && pip3 install psutil \ && apt-get clean +# Install psutil for python2.X +RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py \ + && python get-pip.py \ + && python -m pip install psutil + RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # update password policy @@ -217,6 +223,10 @@ COPY --from=o1mediator-build /usr/local/bin/ /usr/local/bin/ COPY --from=o1mediator-build /usr/local/lib/ /usr/local/lib/ COPY --from=o1mediator-build /usr/local/bin/kubectl /usr/local/bin/kubectl +COPY --from=o1mediator-build /usr/include/libssh/ /usr/include/libssh/ +COPY --from=o1mediator-build /usr/lib/x86_64-linux-gnu/libssh.so.4.* /usr/lib/x86_64-linux-gnu/ +RUN ln -s libssh.so.4 /usr/lib/x86_64-linux-gnu/libssh.so + RUN ldconfig # copy yang models with data