X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docker%2Fbldr-debian-python%2FDockerfile;fp=docker%2Fbldr-debian-python%2FDockerfile;h=c7c581188ac5107f87cd7395309e2be87c66d000;hb=66a126044c9b105e41d8cf359823e66e5c9a43e3;hp=0000000000000000000000000000000000000000;hpb=90e23c8973a9a1378fe3991b6ad75ef0388f737d;p=ci-management.git diff --git a/docker/bldr-debian-python/Dockerfile b/docker/bldr-debian-python/Dockerfile new file mode 100644 index 00000000..c7c58118 --- /dev/null +++ b/docker/bldr-debian-python/Dockerfile @@ -0,0 +1,44 @@ +# 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 --branch v1.1.1 https://github.com/nanomsg/nng.git \ + && cd nng \ + && mkdir build \ + && cd build \ + && cmake -DBUILD_SHARED_LIBS=1 -G Ninja .. \ + && ninja \ + && ninja install