X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fo1-interface.git;a=blobdiff_plain;f=ntsimulator%2Fdeploy%2FDockerfile;h=f1234f291381da34e282fd13d8169682c3e10b1f;hp=b5457b55e87ce63a051a3e230554e893d34ed9d9;hb=0f82040e36cac5066e0d91572e14dc4dfa9cc7af;hpb=02b6266f34374e66bff5136674b215f5c32f61dd diff --git a/ntsimulator/deploy/Dockerfile b/ntsimulator/deploy/Dockerfile index b5457b5..f1234f2 100644 --- a/ntsimulator/deploy/Dockerfile +++ b/ntsimulator/deploy/Dockerfile @@ -58,8 +58,8 @@ RUN mkdir /opt/dev WORKDIR /opt/dev # libcjson -COPY ./cJSON /opt/dev/cJSON RUN \ + git clone https://github.com/Melacon/cJSON.git && \ cd cJSON && mkdir build && cd build && \ cmake .. -DENABLE_CJSON_UTILS=On -DENABLE_CJSON_TEST=Off -DCMAKE_INSTALL_PREFIX=/usr .. && \ make -j2 && \ @@ -67,8 +67,8 @@ RUN \ ldconfig # libyang -COPY ./libyang /opt/dev/libyang RUN \ + git clone https://github.com/Melacon/libyang.git && \ cd libyang && mkdir build && cd build && \ cmake -DCMAKE_BUILD_TYPE:String="Release" -DENABLE_BUILD_TESTS=OFF .. && \ make -j2 && \ @@ -76,8 +76,8 @@ RUN \ ldconfig # sysrepo -COPY ./sysrepo /opt/dev/sysrepo RUN \ + git clone https://github.com/Melacon/sysrepo.git && \ sed -i 's/#define MAX_BLOCKS_AVAIL_FOR_ALLOC 3/#define MAX_BLOCKS_AVAIL_FOR_ALLOC 6/g' ./sysrepo/src/common/sr_mem_mgmt.h && \ cd sysrepo && mkdir build && cd build && \ cmake -DCMAKE_BUILD_TYPE:String="Release" -DENABLE_TESTS=OFF -DREPOSITORY_LOC:PATH=/etc/sysrepo -DREQUEST_TIMEOUT=60 -DOPER_DATA_PROVIDE_TIMEOUT=60 .. && \ @@ -86,8 +86,8 @@ RUN \ ldconfig # libnetconf2 -COPY ./libnetconf2 /opt/dev/libnetconf2 RUN \ + git clone https://github.com/Melacon/libnetconf2.git && \ cd libnetconf2 && mkdir build && cd build && \ cmake -DCMAKE_BUILD_TYPE:String="Release" -DENABLE_BUILD_TESTS=OFF .. && \ make -j2 && \ @@ -95,9 +95,9 @@ RUN \ ldconfig # keystore -COPY ./Netopeer2 /opt/dev/Netopeer2 RUN \ - cd /opt/dev && \ + cd /opt/dev && \ + git clone https://github.com/Melacon/Netopeer2.git && \ cd Netopeer2 && \ cd keystored && mkdir build && cd build && \ cmake -DCMAKE_BUILD_TYPE:String="Release" .. && \ @@ -120,10 +120,11 @@ RUN \ make install RUN pip install rstr && pip install exrex && pip install ipaddress - -COPY ./pyang /opt/dev/pyang + +# pyang RUN \ cd /opt/dev && \ + git clone https://github.com/Melacon/pyang.git && \ cd pyang && python setup.py build && python setup.py install #NTSimulator Manager - notifications