Remove environment setup from listener dockerfile
[ric-app/mc.git] / sidecars / listener / Dockerfile
index f8cf59e..134884f 100644 (file)
 #      Author:         E. Scott Daniels
 
 
-FROM ubuntu:18.04 as buildenv
+FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu16-c-go:2-u16.04-nng as buildenv
 RUN mkdir /playpen
 
 RUN apt-get update && apt-get install -y cmake gcc make git g++ wget
 
+WORKDIR /playpen
+# Install RMr (runtime and dev) from debian package cached on packagecloud.io
+ARG RMR_VER=1.10.2
+
+RUN wget -nv --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_${RMR_VER}_amd64.deb/download.deb
+RUN wget -nv --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_${RMR_VER}_amd64.deb/download.deb
+RUN dpkg -i rmr_${RMR_VER}_amd64.deb
+RUN dpkg -i rmr-dev_${RMR_VER}_amd64.deb
+
+
 RUN mkdir /playpen/bin /playpen/src
 ARG SRC=.
-COPY ${SRC}/build_dev_env.sh /playpen/bin/
 COPY ${SRC}/Makefile ${SRC}/*.h ${SRC}/*.c /playpen/src/
 
 ENV LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib
 ENV C_INCLUDE_PATH=/usr/local/include
-RUN bash /playpen/bin/build_dev_env.sh
 RUN cd /playpen/src/; make -B mc_listener sender pipe_reader
 
 # -----  final, smaller image ----------------------------------