3 # Copyright (C) 2019 AT&T Intellectual Property and Nokia
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # Builder image Alpine 3.9
21 # nng library (libnng.so, libnng.so.X.X.X; see below for pinned version)
22 # Includes RIC libraries as a distribution path because
23 # PackageCloud does not support Alpine .apk (yet):
24 # mdc log library (libmdclog.so, libmdbclog.so.X.X.X; see below for pinned version)
25 # rmr library (librmr_nng.so, libmdclog.so..X.X.X; see below for pinned version)
26 # How to get a library file from this Docker base image:
27 # COPY --from=nexus3.o-ran-sc.org:10004/bldr-alpine3:1-a3.9 /usr/local/lib64/libnng.so.X.X.X /usr/local/lib
28 # COPY --from=nexus3.o-ran-sc.org:10004/bldr-alpine3:1-a3.9 /usr/local/lib64/librmr_nng.so.X.X.X /usr/local/lib
29 # COPY --from=nexus3.o-ran-sc.org:10004/bldr-alpine3:1-a3.9 /usr/local/lib/libmdclog.so.X.X.X /usr/local/lib
30 # Some packages install to /usr/local/lib, others to /usr/local/lib64
31 # Alpine by default searches /usr/local/lib but not /usr/local/lib64
33 FROM python:3.7-alpine
34 RUN apk update && apk add \
46 # the autoconf-archive in alpine's edge repos is too new
47 # for our purposes, so we'll use one from the source.
49 && git clone --branch v2015.09.25 git://git.sv.gnu.org/autoconf-archive.git \
50 && cp /tmp/autoconf-archive/m4/* /usr/share/aclocal \
51 && rm -rf /tmp/autoconf-archive
53 # NNG, version is pinned
55 && git clone --branch v1.1.1 https://github.com/nanomsg/nng.git \
59 && cmake -DBUILD_SHARED_LIBS=1 -G Ninja .. \
63 # MCDLOG, version is pinned
65 && git clone --branch v0.0.4 https://gerrit.o-ran-sc.org/r/com/log \
72 # RMR, version is pinned
74 && git clone --branch 1.1.0 https://gerrit.o-ran-sc.org/r/ric-plt/lib/rmr \