X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ci%2FDockerfile;h=0f6d8719c2174cfc892e12c73a09b3da5c900ffe;hb=3d7285ec4c96724b64968f46c2075b77e8d08543;hp=cd81fa3a4755f038017df79c967d5b0a1e8b7c1e;hpb=29d871650240d6b4fba0ca46d7f13a90c004003c;p=ric-plt%2Flib%2Frmr.git diff --git a/ci/Dockerfile b/ci/Dockerfile index cd81fa3..0f6d871 100755 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -14,15 +14,24 @@ # See the License for the specific language governing permissions and # limitations under the License. -# CI to verify the RMR library +# CI to verify the RMR library and build run-time and dev packages # Inherits C toolchain from buildpack-deps:stretch -# Adds cmake for RMR +# Adds cmake ksh and alien for RMR FROM buildpack-deps:stretch RUN apt-get update && apt-get -q -y install cmake ksh alien ADD . /tmp -# tests require directory named ".build" and dev_pkg to place header files in .build -RUN cd /tmp && mkdir .build && cd .build && cmake .. -DDEV_PKG=1 && make install && make package -# tests require a Linux host, fail in a Linux VM on mac/win -RUN cd /tmp/test && ksh unit_test.ksh -v -RUN cd /tmp/test/app_test && ksh run_all.ksh +WORKDIR /tmp + +# build RMr, run unit tests, and generate packages and package lists +RUN ksh ci/ci_build.ksh + +# Executing the container "as a binary" will cause the CI publish +# script to execute. This will take the simple package list generated +# by the ci_build script and copy the list of packages to the target +# directory. The target directory is /export by default, but can be +# overridden from the docker run command line. In either case, the +# assumption is that the target directory is mounted as a volume. +# +ENTRYPOINT [ "ci/publish.sh" ] +