X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ci%2FDockerfile;h=69badcf363c53dcd82803e117ef718bb2070c4f6;hb=8083bb18456d777190a9ebed44a90c91b0bb29fe;hp=f2fc04e517c08f28792cb1b107a4d32f13b85ad8;hpb=6464f1220ee8e99c61fd143b5b7698228d15b272;p=ric-plt%2Fxapp-frame.git diff --git a/ci/Dockerfile b/ci/Dockerfile index f2fc04e..69badcf 100755 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -17,7 +17,13 @@ # #---------------------------------------------------------- -FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu18-c-go:4-u18.04-nng as xapp-base +FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 as xapp-base + +ARG g16="1.16.4" +RUN wget -nv https://dl.google.com/go/go${g16}.linux-amd64.tar.gz \ + && tar -xf go${g16}.linux-amd64.tar.gz \ + && mv go /opt/go/1.16 \ + && rm -f go*.gz RUN apt-get update -y \ &&apt-get install -y \ @@ -33,13 +39,16 @@ RUN apt-get update -y \ curl \ tree +ARG GOVERSION=1.16 +ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/go/${GOVERSION}/bin + RUN curl -s https://packagecloud.io/install/repositories/o-ran-sc/master/script.deb.sh | bash # RMR -ARG RMRVERSION=1.13.1 +ARG RMRVERSION=4.2.2 #RUN apt-get install -y rmr=${RMRVERSION} rmr-dev=${RMRVERSION} -RUN wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr_${RMRVERSION}_amd64.deb -RUN wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr-dev_${RMRVERSION}_amd64.deb +RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr_${RMRVERSION}_amd64.deb +RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr-dev_${RMRVERSION}_amd64.deb RUN rm -f rmr_${RMRVERSION}_amd64.deb rmr-dev_${RMRVERSION}_amd64.deb # @@ -75,4 +84,9 @@ RUN make -C /ws go-build RUN make -C /ws go-test-fmt # Test Requires dbaas -#RUN make -C /ws go-test +#RUN sed -r "s/^(::1.*)/#\1/" /etc/hosts > /etc/hosts.new \ +# && cat /etc/hosts.new > /etc/hosts \ +# && cat /etc/hosts \ +# && make -C /ws go-test + +RUN make -C /ws go-test