Docker file for Ubuntu 18.04

Base image updated to Unbuntu 18.04
Prerequisite list updated
Basic configuration updated
This commit is contained in:
Srdjan Obucina 2019-08-20 15:46:30 +02:00 committed by gladcow
parent cbb9a11fe1
commit faf9adf73e
2 changed files with 23 additions and 9 deletions

View file

@ -1,2 +1 @@
build build

View file

@ -1,6 +1,7 @@
FROM ubuntu:18.04 FROM ubuntu:18.04
MAINTAINER PeerPlays Blockchain Standards Association MAINTAINER PeerPlays Blockchain Standards Association
<<<<<<< HEAD
ENV LANG en_US.UTF-8 ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8 ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8 ENV LC_ALL en_US.UTF-8
@ -10,6 +11,14 @@ RUN \
DEBIAN_FRONTEND=noninteractive apt-get install -y \ DEBIAN_FRONTEND=noninteractive apt-get install -y \
autoconf \ autoconf \
bash \ bash \
=======
ENV LANG=en_US.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update -y && \
apt-get install -y \
autoconf \
>>>>>>> Docker file for Ubuntu 18.04
build-essential \ build-essential \
ca-certificates \ ca-certificates \
cmake \ cmake \
@ -22,11 +31,15 @@ RUN \
libreadline-dev \ libreadline-dev \
libssl-dev \ libssl-dev \
libtool \ libtool \
<<<<<<< HEAD
locales \ locales \
ntp \ ntp \
pkg-config \ pkg-config \
doxygen \ doxygen \
ca-certificates \ ca-certificates \
=======
ntp \
>>>>>>> Docker file for Ubuntu 18.04
wget \ wget \
&& \ && \
apt-get clean && \ apt-get clean && \
@ -51,20 +64,22 @@ WORKDIR /peerplays-core
# Compile Peerplays # Compile Peerplays
RUN \ RUN \
BOOST_ROOT=$HOME/boost_1_67_0 && \
git submodule update --init --recursive && \ git submodule update --init --recursive && \
BOOST_ROOT=$HOME/opt/boost_1_60_0 && \ BOOST_ROOT=$HOME/boost_1_67_0 && \
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.gz/download' -O boost_1_60_0.tar.gz &&\ wget -c 'http://sourceforge.net/projects/boost/files/boost/1.67.0/boost_1_67_0.tar.gz/download' -O boost_1_67_0.tar.gz &&\
tar -zxvf boost_1_60_0.tar.gz && \ tar -zxvf boost_1_67_0.tar.gz && \
cd boost_1_60_0/ && \ cd boost_1_67_0/ && \
./bootstrap.sh "--prefix=$BOOST_ROOT" && \ ./bootstrap.sh "--prefix=$BOOST_ROOT" && \
./b2 install -j$(nproc) && \ ./b2 install && \
cd .. && \ cd .. && \
mkdir build && \
mkdir build/release && \
cd build/release && \
cmake \ cmake \
-DBOOST_ROOT="$BOOST_ROOT" \ -DBOOST_ROOT="$BOOST_ROOT" \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
. && \ ../.. && \
make witness_node cli_wallet -j$(nproc) && \ make witness_node cli_wallet && \
install -s programs/witness_node/witness_node programs/cli_wallet/cli_wallet /usr/local/bin && \ install -s programs/witness_node/witness_node programs/cli_wallet/cli_wallet /usr/local/bin && \
# #
# Obtain version # Obtain version