Add scratch image with RMR library at version 3.8 18/3318/2 3.8.0
authorLott, Christopher (cl778h) <cl778h@att.com>
Sun, 19 Apr 2020 11:58:22 +0000 (07:58 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Sun, 19 Apr 2020 12:05:30 +0000 (08:05 -0400)
Provides RMR for Alpine including header files and shared-object libraries,
basically a workaround for missing APK support at PackageCloud.io.
Unlike other bldr- images, this only has library files, no build tools.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I39f3d681d7f7e9ad38934fd19bb874185831d3f8

bldr-imgs/bldr-alpine3-rmr/Dockerfile [new file with mode: 0644]
bldr-imgs/bldr-alpine3-rmr/container-tag.yaml [new file with mode: 0644]

diff --git a/bldr-imgs/bldr-alpine3-rmr/Dockerfile b/bldr-imgs/bldr-alpine3-rmr/Dockerfile
new file mode 100644 (file)
index 0000000..dba5f5f
--- /dev/null
@@ -0,0 +1,54 @@
+# ==================================================================================
+#       Copyright (c) 2020 Nokia
+#       Copyright (c) 2020 AT&T Intellectual Property.
+#
+#   Licensed under the Apache License, Version 2.0 (the "License");
+#   you may not use this file except in compliance with the License.
+#   You may obtain a copy of the License at
+#
+#          http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
+# ==================================================================================
+
+# Provides RMR for Alpine including header files and shared-object libraries,
+# basically a workaround for missing APK support at PackageCloud.io.
+# Unlike other bldr- images, this only has library files, no build tools.
+# See list of available files below.  Use the following command to copy a file
+# in a Docker build, after replacing "TAG" with the desired version string:
+#
+# COPY --from=nexus3.o-ran-sc.org:10004/bldr-alpine3-rmr:TAG /usr/local/lib64/librmr_si.so /usr/local/lib64/librmr_si.so
+#
+# /usr/local/include/rmr:
+#     RIC_message_types.h
+#     rmr.h
+#     rmr_logging.h
+#     rmr_symtab.h
+#
+# /usr/local/lib64:
+#     librmr_nng.a
+#     librmr_nng.so
+#     librmr_nng.so.3        (subject to version change)
+#     librmr_nng.so.3.8.0    (subject to version change)
+#     librmr_si.a
+#     librmr_si.so
+#     librmr_si.so.3         (subject to version change)
+#     librmr_si.so.3.8.0     (subject to version change)
+
+FROM alpine:3.11 as bldr
+RUN apk update && apk add autoconf automake build-base cmake libtool pkgconfig git sudo
+RUN git clone --branch 3.8.0 https://gerrit.oran-osc.org/r/ric-plt/lib/rmr \
+    && cd rmr \
+    && mkdir .build; cd .build \
+    && echo "<<<installing rmr devel headers>>>" \
+    && cmake .. -DDEV_PKG=1; make install \
+    && echo "<<< installing rmr .so>>>" \
+    && cmake .. -DDEV_PKG=0; make install
+
+FROM scratch
+COPY --from=bldr /usr/local/include/rmr /usr/local/include/rmr
+COPY --from=bldr /usr/local/lib64 /usr/local/lib64
diff --git a/bldr-imgs/bldr-alpine3-rmr/container-tag.yaml b/bldr-imgs/bldr-alpine3-rmr/container-tag.yaml
new file mode 100644 (file)
index 0000000..22061ec
--- /dev/null
@@ -0,0 +1,2 @@
+---
+tag: 3.8.0