start working on ns-o-ran branch
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM nexus3.o-ran-sc.org:10004/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 as kpimonbuild
|
||||
FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 as kpimonbuild
|
||||
|
||||
ENV PATH $PATH:/usr/local/bin
|
||||
ENV GOPATH /go
|
||||
@@ -14,9 +14,11 @@ RUN wget --content-disposition ${RMRLIBURL} && dpkg -i rmr_${RMRVERSION}_amd64.d
|
||||
RUN wget --content-disposition ${RMRDEVURL} && dpkg -i rmr-dev_${RMRVERSION}_amd64.deb
|
||||
RUN rm -f rmr_${RMRVERSION}_amd64.deb rmr-dev_${RMRVERSION}_amd64.deb
|
||||
|
||||
RUN apt update && apt install ca-certificates libgnutls30 -y
|
||||
|
||||
ARG XAPPFRAMEVERSION=v0.4.11
|
||||
WORKDIR /go/src/gerrit.o-ran-sc.org/r/ric-plt
|
||||
RUN git clone "https://gerrit.o-ran-sc.org/r/ric-plt/sdlgo"
|
||||
RUN git clone -b cherry "https://gerrit.o-ran-sc.org/r/ric-plt/sdlgo"
|
||||
RUN git clone -b ${XAPPFRAMEVERSION} "https://gerrit.o-ran-sc.org/r/ric-plt/xapp-frame"
|
||||
RUN cd xapp-frame && \
|
||||
GO111MODULE=on go mod vendor -v && \
|
||||
@@ -55,6 +57,14 @@ RUN go build ./cmd/kpimon.go && pwd && ls -lat
|
||||
|
||||
|
||||
FROM ubuntu:18.04
|
||||
|
||||
ENV PATH $PATH:/usr/local/bin
|
||||
ENV GOPATH /go
|
||||
ENV GOBIN /go/bin
|
||||
ENV RMR_SEED_RT /opt/routes.txt
|
||||
|
||||
COPY routes.txt /opt/routes.txt
|
||||
|
||||
COPY --from=kpimonbuild /usr/local/lib /usr/local/lib
|
||||
COPY --from=kpimonbuild /usr/local/include/e2ap/*.h /usr/local/include/e2ap/
|
||||
COPY --from=kpimonbuild /usr/local/include/e2sm/*.h /usr/local/include/e2sm/
|
||||
@@ -64,3 +74,5 @@ COPY --from=kpimonbuild /go/src/gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/config/
|
||||
WORKDIR /go/src/gerrit.o-ran-sc.org/r/scp/ric-app/kpimon
|
||||
COPY --from=kpimonbuild /go/src/gerrit.o-ran-sc.org/r/scp/ric-app/kpimon/kpimon .
|
||||
|
||||
|
||||
CMD sleep infinity
|
||||
Reference in New Issue
Block a user