Dockerfile.ngraph.centos74 2.08 KB
Newer Older
1
# ******************************************************************************
2
# Copyright 2017-2019 Intel Corporation
3 4 5 6 7 8 9 10 11 12 13 14 15 16
#
# 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.
# ******************************************************************************

17
# Environment to build and unit-test ngraph on centos74
18 19 20 21 22 23 24 25
# with gcc 4.8.5
# with python 2.7
# with cmake3
# LLVM/clang will be built from source

FROM centos:7

# Added install for perl Data::Dumper to avoid a compile error
26
# Sphinx docs specify python-sphinx package
27 28 29 30 31 32 33
RUN yum -y update && \
    yum -y --enablerepo=extras install epel-release && \
    yum -y install \
    gcc gcc-c++ \
    cmake3 make \
    git \
    wget patch diffutils zlib-devel ncurses-devel libtinfo-dev \
34
    python python-devel python-sphinx python-setuptools \
35
    doxygen graphviz \
36 37 38 39 40 41 42 43 44 45 46 47 48
    which \
    'perl(Data::Dumper)'

RUN ln -s /usr/bin/cmake3 /usr/bin/cmake

RUN cmake --version
RUN make --version
RUN gcc --version
RUN c++ --version

RUN easy_install pip
RUN pip install virtualenv

49

50 51 52 53 54 55 56 57 58 59 60 61
# Install some pip packages

# need to use sphinx version 1.6 to build docs
# installing with apt-get install python-sphinx installs sphinx version 1.3.6 only
# added install for python-pip above and
# installed sphinx with pip to get the updated version 1.6.5
# allows for make html build under the doc/source directory as an interim build process
RUN pip install sphinx

# breathe package required to build documentation
RUN pip install breathe

62 63 64
# need numpy to successfully build docs for python_api
RUN pip install numpy

65
# release notes need this markdown extension
66 67 68
# RUN python3 -m pip install m2r


69
WORKDIR /home