X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ci%2FDockerfile;h=83a2c2c0bd17040ae02cdd7c8ff583c67f8db1f5;hb=2e2c88665843b4bd805dbd1a2c71e5959fa9d5bb;hp=737845cc27c542909c052ec556459c99fcc77695;hpb=8f638134b04885e36c5c3857ebe4b681b41784fa;p=ric-plt%2Fsdl.git diff --git a/ci/Dockerfile b/ci/Dockerfile index 737845c..83a2c2c 100644 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -14,20 +14,53 @@ # limitations under the License. # -FROM nexus3.o-ran-sc.org:10004/bldr-ubuntu18-c-go:2-u18.04-nng +# +# This source code is part of the near-RT RIC (RAN Intelligent Controller) +# platform project (RICP). +# -# Install build tools and SDL dependencies: +FROM ubuntu:18.04 + +# Install building tools and SDL dependencies: RUN apt-get update && \ - apt-get install -y libhiredis-dev && \ + apt-get install -y \ + build-essential \ + automake \ + libtool \ + pkg-config \ + libgtest-dev \ + rpm \ + devscripts \ + gawk \ + debhelper \ + autoconf-archive \ + libboost-filesystem-dev \ + libboost-program-options-dev \ + libboost-system-dev \ + libhiredis-dev \ + valgrind && \ apt-get clean # Copy sourcefiles: RUN mkdir -p /tmp/build COPY . /tmp/build +WORKDIR /tmp/build # Compile and run unit tests: -WORKDIR /tmp/build RUN ./autogen.sh && \ ./configure && \ make all && \ make test + +# Build packages: +RUN make clean && \ + make distclean && \ + ./configure --with-rpm-dir=/tmp/pkgs && \ + make rpm-pkg && \ + make clean && \ + make distclean && \ + ./configure --with-deb-dir=/tmp/pkgs && \ + make deb-pkg + +RUN cp /tmp/build/ci/publish.sh /bin +ENTRYPOINT ["/bin/publish.sh"]