X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=mc-core%2FDockerfile;h=6bd4bf77794dca8b535e21c51ff64317e670bb40;hb=67ae0f4b9eeb2a11265dda0b0274ade6278da83c;hp=1df54c13e79ec428d147c168059ab79996cbdb3d;hpb=167fe26eb2c6d3fca6bd0cf93e59ef6309a59585;p=ric-app%2Fmc.git diff --git a/mc-core/Dockerfile b/mc-core/Dockerfile index 1df54c1..6bd4bf7 100644 --- a/mc-core/Dockerfile +++ b/mc-core/Dockerfile @@ -16,11 +16,12 @@ ARG STAGE_DIR=/mc -FROM nexus3.o-ran-sc.org:10004/o-ran-sc/bldr-ubuntu18-c-go:8-u18.04 AS project-build +# builders are now in release (10002) +FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 AS project-build ARG STAGE_DIR -ARG RMR_VER=4.0.5 +ARG RMR_VER=4.5.2 RUN wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_${RMR_VER}_amd64.deb/download.deb RUN wget -nv --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_${RMR_VER}_amd64.deb/download.deb @@ -49,6 +50,10 @@ RUN make clean RUN make RUN make install RUN ldconfig + +# hack to get protobufs to build +RUN cp src/google/protobuf/stubs/int128.h /usr/local/include/google/protobuf/stubs + WORKDIR ${STAGE_DIR} RUN git clone https://github.com/protobuf-c/protobuf-c.git WORKDIR protobuf-c @@ -59,7 +64,7 @@ RUN make RUN make install RUN ldconfig WORKDIR ${STAGE_DIR} -RUN git clone -b release/0.2.0 https://gerrit.o-ran-sc.org/r/com/gs-lite +RUN git clone -b release/0.3.0 https://gerrit.o-ran-sc.org/r/com/gs-lite WORKDIR ${STAGE_DIR}/gs-lite COPY mc/cfg/packet_schema.txt ${STAGE_DIR}/gs-lite/cfg/ COPY mc/cfg/ifres.xml ${STAGE_DIR}/gs-lite/cfg/ @@ -76,7 +81,12 @@ RUN python generate_runall.py # now install the binaries and libraries into smaller docker image -FROM nexus3.o-ran-sc.org:10004/o-ran-sc/ric-app-mc-listener:1.5.0 +FROM nexus3.o-ran-sc.org:10002/o-ran-sc/ric-app-mc-listener:1.7.0 + +# keep this close to the top to prevent lengthy rebuilds during testing +RUN apt-get update && \ + apt-get install -y curl python python-pip libboost-all-dev libhiredis-dev && \ + apt-get clean ARG STAGE_DIR @@ -92,10 +102,7 @@ WORKDIR /opt/ric/config COPY --from=project-build ${STAGE_DIR}/mc_deployment.json /opt/ric/config/config-file.json COPY container_start.sh /playpen/bin/ - -RUN apt-get update && \ - apt-get install -y curl python python-pip libboost-all-dev libhiredis-dev && \ - apt-get clean +COPY package/*.py package/*.sh /playpen/bin/ RUN ldconfig RUN pip install protobuf