X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=6b719d1c88b3a245abf246e60a8701073b28ad8f;hb=7da859b7f9c3deaea8c099f2b3f2186bb438f3e5;hp=4ae45f00e99a2141adfc44bbcadde139fe1fbe08;hpb=e00186861608731e2390055a0e1b1cf455670508;p=ric-plt%2Fsubmgr.git diff --git a/Dockerfile b/Dockerfile index 4ae45f0..6b719d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,14 +20,14 @@ # Abstract: Builds a container to compile Subscription Manager's code # Date: 28 May 2019 # -FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu18-c-go:1-u18.04-nng1.1.1 as submgrbuild +FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu18-c-go:2-u18.04-nng as submgrbuild WORKDIR /tmp # Install RMr shared library -RUN wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_1.6.0_amd64.deb/download.deb && dpkg -i rmr_1.6.0_amd64.deb && rm -rf rmr_1.6.0_amd64.deb +RUN wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_1.9.0_amd64.deb/download.deb && dpkg -i rmr_1.9.0_amd64.deb && rm -rf rmr_1.9.0_amd64.deb # Install RMr development header files -RUN wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_1.6.0_amd64.deb/download.deb && dpkg -i rmr-dev_1.6.0_amd64.deb && rm -rf rmr-dev_1.6.0_amd64.deb +RUN wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_1.9.0_amd64.deb/download.deb && dpkg -i rmr-dev_1.9.0_amd64.deb && rm -rf rmr-dev_1.9.0_amd64.deb # "PULLING LOG and COMPILING LOG" RUN git clone "https://gerrit.o-ran-sc.org/r/com/log" /opt/log && cd /opt/log && \ @@ -66,27 +66,21 @@ RUN mkdir -p /root/go && \ /usr/local/go/bin/swagger generate client -f api/routing_manager.yaml -t pkg/ -m rtmgr_models -c rtmgr_client +RUN /usr/local/go/bin/go mod tidy COPY pkg pkg COPY cmd cmd -RUN /usr/local/go/bin/go mod tidy - -RUN git clone -b v0.0.8 "https://gerrit.o-ran-sc.org/r/ric-plt/xapp-frame" /tmp/xapp-frame -COPY tmp/rmr.go /tmp/xapp-frame/pkg/xapp/rmr.go - -RUN /usr/local/go/bin/go mod edit -replace "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame"="/tmp/xapp-frame" - # "COMPILING Subscription manager" RUN mkdir -p /opt/bin && \ /usr/local/go/bin/go build -o /opt/bin/submgr cmd/submgr.go && \ mkdir -p /opt/build/container/usr/local -COPY config config - FROM ubuntu:18.04 -COPY --from=submgrbuild /opt/bin/submgr /opt/submgr/config/submgr.yaml / +RUN apt update && apt install -y iputils-ping net-tools curl tcpdump + COPY run_submgr.sh / +COPY --from=submgrbuild /opt/bin/submgr / COPY --from=submgrbuild /usr/local/include /usr/local/include COPY --from=submgrbuild /usr/local/lib /usr/local/lib RUN ldconfig