-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 1.24 KB
/
Copy pathDockerfile
File metadata and controls
31 lines (25 loc) · 1.24 KB
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
#-----------------------------------------------------------------------
# distributedSyncTest protocolbuffer + grpc + c++ development container (base image for iroha)
#
# build : docker build -t satellitex/distributed-sync-test .
#-----------------------------------------------------------------------
FROM ubuntu:16.04
export SYNC_PATH="/opt/dsync"
RUN apt update && apt -y upgrade && \
apt -y install \
software-properties-common \
python-software-properties \
curl git wget make g++-5 gcc-5 default-jdk \
libhdf5-serial-dev libleveldb-dev libsnappy-dev \
liblmdb-dev libssl-dev unzip xsltproc zlib1g-dev \
autoconf automake libtool jq pkg-config cppcheck \
valgrind clang-tidy
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20 && \
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-5 20 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 && \
update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-5 20 && \
curl -sSL https://cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz | \
tar -xzC /opt && \
ln -s /opt/cmake*/bin/c* /usr/local/bin
CMD ["/bin/bash"]