X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=6b719d1c88b3a245abf246e60a8701073b28ad8f;hb=refs%2Fchanges%2F76%2F1976%2F3;hp=4676ec2c3696b58fdb64e49643c49be8afc85d33;hpb=f0b69ac0a1a43deabbc56e7fbcbace995e03f31c;p=ric-plt%2Fsubmgr.git diff --git a/Dockerfile b/Dockerfile index 4676ec2..6b719d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ # 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 @@ -70,12 +70,6 @@ RUN /usr/local/go/bin/go mod tidy COPY pkg pkg COPY cmd cmd - -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 && \ @@ -86,6 +80,7 @@ FROM ubuntu:18.04 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