This repository has been archived by the owner on May 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathDockerfile.he_transformer.ubuntu1804
85 lines (74 loc) · 2.87 KB
/
Dockerfile.he_transformer.ubuntu1804
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# ******************************************************************************
# Copyright 2018-2020 Intel Corporation
#
# 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.
# ******************************************************************************
# Environment to build and unit-test he-transformer
# with g++ 7.4.0
# with clang++ 9.0.1
# with python 3.6.8
# with cmake 3.14.4
FROM ubuntu:18.04
# tzdata - do not run any interactive dialog
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3-pip virtualenv \
python3-numpy python3-dev python3-wheel \
git \
unzip wget \
sudo \
bash-completion \
build-essential make cmake \
software-properties-common \
wget patch diffutils libtinfo-dev \
autoconf libtool \
doxygen graphviz \
yapf3 python3-yapf \
libmpfr-dev \
libgmp-dev \
libssl-dev
# install gcc-8
RUN apt-get update \
&& apt-get install -y \
software-properties-common \
&& add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& apt-get update \
&& apt-get install -y \
vim \
vim-gnome \
&& apt-get install -y \
gcc-8 g++-8 gcc-8-base \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
# Install clang-9
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
RUN apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
RUN apt-get update && apt install -y clang-9 clang-tidy-9 clang-format-9
RUN apt-get clean autoclean && \
apt-get autoremove -y
# For ngraph-tf integration testing
RUN pip3 install --upgrade pip setuptools virtualenv==16.1.0
# SEAL requires newer version of CMake
RUN pip3 install cmake --upgrade
RUN cmake --version
RUN make --version
RUN gcc --version
RUN clang++-9 --version
RUN c++ --version
RUN python3 --version
RUN virtualenv --version
# Get bazel for ng-tf
RUN wget https://github.com/bazelbuild/bazel/releases/download/0.25.2/bazel-0.25.2-installer-linux-x86_64.sh
RUN chmod +x ./bazel-0.25.2-installer-linux-x86_64.sh
RUN bash ./bazel-0.25.2-installer-linux-x86_64.sh
WORKDIR /home