Add NNG library, drop RIC/RMr library 57/357/4
authorLott, Christopher (cl778h) <cl778h@att.com>
Mon, 17 Jun 2019 19:42:33 +0000 (15:42 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Mon, 17 Jun 2019 20:39:57 +0000 (16:39 -0400)
Rename the image name, and adjust JJB template accordingly

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

docker/bldr-debian-python-nng/Dockerfile [new file with mode: 0644]
docker/bldr-debian-python-nng/container-tag.yaml [new file with mode: 0644]
jjb/ci-management/ci-docker.yaml

diff --git a/docker/bldr-debian-python-nng/Dockerfile b/docker/bldr-debian-python-nng/Dockerfile
new file mode 100644 (file)
index 0000000..bfb46fc
--- /dev/null
@@ -0,0 +1,45 @@
+# O-RAN-SC
+#
+# Copyright (C) 2019 AT&T Intellectual Property and Nokia
+#
+# 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.
+
+
+# Builder image with CI tools for RIC components
+# uses Python 3.7 (Debian stretch) base which has
+# C and C++ tools from buildpack-deps:stretch then adds:
+# Ninja 1.9 from binary distro to /usr/local/bin
+# Nanomsg Next Gen libs by cloning and building
+
+FROM python:3.7
+
+RUN apt-get update && apt-get -q -y install \
+  autoconf \
+  autoconf-archive \
+  automake \
+  cmake \
+  libtool \
+  pkg-config
+
+RUN wget -nv https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip \
+    && unzip ninja-linux.zip \
+    && chmod +x ninja \
+    && mv ninja /usr/local/bin
+
+RUN git clone https://github.com/nanomsg/nng.git \
+    && cd nng \
+    && mkdir build \
+    && cd build \
+    && cmake -DBUILD_SHARED_LIBS=1 -G Ninja .. \
+    && ninja \
+    && ninja install
diff --git a/docker/bldr-debian-python-nng/container-tag.yaml b/docker/bldr-debian-python-nng/container-tag.yaml
new file mode 100644 (file)
index 0000000..49e7813
--- /dev/null
@@ -0,0 +1,4 @@
+# Not feasible to show all the software versions
+# here so just use a counter plus the base image
+---
+tag: 1-py3.7
index c5d6e42..c0854f7 100644 (file)
@@ -20,7 +20,7 @@
 
 - project:
     <<: *ci_docker_common
-    name: bldr-ric-debian-python
+    name: bldr-debian-python-nng
     project-name: '{project}-{name}'
     docker-name: '{name}'
     docker-root: 'docker/{name}'