forked from skalenetwork/skale-consensus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileBase
41 lines (31 loc) · 1.49 KB
/
DockerfileBase
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
FROM ubuntu:bionic
RUN apt-get install -yq software-properties-common
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt-get update
RUN apt-get install -y software-properties-common; sudo apt-add-repository universe; apt-get update; \
apt-get install -yq libprocps-dev gcc-9 g++-9 valgrind gawk sed libffi-dev ccache libgoogle-perftools-dev \
flex bison yasm texinfo autotools-dev automake \
python3 python3-pip \
cmake libtool build-essential pkg-config autoconf wget git libargtable2-dev \
libmicrohttpd-dev libhiredis-dev redis-server openssl libssl-dev doxygen idn2 \
libgcrypt20-dev
# python python-pip
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
RUN update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-9 9
RUN update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-9 9
RUN update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-9 9
RUN ln -s /usr/bin/ccache /usr/local/bin/clang && \
ln -s /usr/bin/ccache /usr/local/bin/clang++ && \
ln -s /usr/bin/ccache /usr/local/bin/gcc && \
ln -s /usr/bin/ccache /usr/local/bin/g++ && \
ln -s /usr/bin/ccache /usr/local/bin/cc && \
ln -s /usr/bin/ccache /usr/local/bin/c++
ENV CC gcc-9
ENV CXX g++-9
ENV TARGET all
ENV TRAVIS_BUILD_TYPE Debug
COPY . /consensust
WORKDIR /consensust
RUN cd deps && ./build.sh
RUN cd scripts && ./build.py Debug