X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docker%2Fbldr-ubuntu18-c-go-nng%2FDockerfile;fp=docker%2Fbldr-ubuntu18-c-go-nng%2FDockerfile;h=e9e0937d6687e571f5cca47a6ea694d717894d33;hb=a92406b1ee4873d81e599a136867f3157e4bf6d5;hp=0000000000000000000000000000000000000000;hpb=d81564a79e0dac74d196c807b05b293823402c9b;p=ci-management.git diff --git a/docker/bldr-ubuntu18-c-go-nng/Dockerfile b/docker/bldr-ubuntu18-c-go-nng/Dockerfile new file mode 100644 index 00000000..e9e0937d --- /dev/null +++ b/docker/bldr-ubuntu18-c-go-nng/Dockerfile @@ -0,0 +1,83 @@ +# 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 superset of CI tools for RIC components +# Uses Ubuntu 18.04 base then adds: +# Standard apt packages including gcc and g++ 5.4 +# Cmake 3.14.5 from binary distro to /usr/local/bin +# Golang 1.12 from binary distro to /usr/local/go +# Ninja 1.9 from binary distro to /usr/local/bin +# Nanomsg Next Gen v1.1.1 from source distro +# Boost 1.69 from source distro + +FROM nexus3.o-ran-sc.org:10001/ubuntu:18.04 + +RUN apt-get update && apt-get install -y \ + autoconf \ + autoconf-archive \ + automake \ + autotools-dev \ + build-essential \ + g++ \ + gcc \ + git \ + libbz2-dev \ + libicu-dev \ + libsctp-dev \ + libtool \ + lksctp-tools \ + make \ + python-dev \ + pkg-config \ + software-properties-common \ + wget \ + zlib1g \ + zlib1g-dev \ + zlibc \ + zip + +WORKDIR /tmp + +RUN wget -nv https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.sh \ + && chmod +x cmake-3.14.5-Linux-x86_64.sh \ + && ./cmake-3.14.5-Linux-x86_64.sh --prefix=/usr/local --skip-license + +RUN wget -nv https://dl.google.com/go/go1.12.linux-amd64.tar.gz \ + && tar -xf go1.12.linux-amd64.tar.gz \ + && mv go /usr/local + +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 \ + && git checkout v1.1.1 \ + && mkdir build \ + && cd build \ + && cmake -DBUILD_SHARED_LIBS=1 -G Ninja .. \ + && ninja \ + && ninja install + +RUN wget -nv https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.zip \ + && unzip -q boost_1_69_0.zip \ + && cd boost_1_69_0 \ + && ./bootstrap.sh --prefix=/usr/ \ + && ./b2 \ + && ./b2 install \ + && cd ../ \ + && rm -rf boost_1_69_0.zip boost_1_69_0